mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 10:46:17 +00:00
临时提交
This commit is contained in:
@@ -32,7 +32,7 @@ namespace Service
|
||||
public override async Task OnInit()
|
||||
{
|
||||
var map = await Resources.LoadAsync<TextAsset>("Samples/Battle/Map/NavMesh/Map_1001.navmesh") as TextAsset;
|
||||
var map2 = await Resources.LoadAsync<TextAsset>("Samples/map1") as TextAsset;
|
||||
var map2 = await Resources.LoadAsync<TextAsset>("map1") as TextAsset;
|
||||
if (map != null) MapData = JsonUtil.ToObject<StaticMapData>(map.text);
|
||||
if (map2 != null) MapData2 = JsonUtil.ToObject<MeshData>(map2.text);
|
||||
if (MapData != null) Debug.Log("加载地图资源完成");
|
||||
|
Reference in New Issue
Block a user