public void ReadMap(string fileName) { Debug.Log("MapCtr::ReadMap"); Debug.Log(GameDebug.GetInvokeClassAndMethodName(1)); Debug.Log(GameDebug.GetInvokeClassAndMethodName(2)); Debug.Log(GameDebug.GetInvokeClassAndMethodName(3)); if (string.IsNullOrEmpty(fileName)) { return; } Debug.Log(Application.dataPath); string dir = Application.dataPath + "/"; PathfindingMap = AStarMapStream.Read(dir + fileName + "_astar.txt"); MapData map = MapStream.Read(dir + fileName + ".txt"); FromMapData(map); }