void DoLoadMap(string map_name, bool isDefaultMap) { if (string.IsNullOrEmpty(map_name)) { return; } Debug.LogError("Load Map: " + map_name); MapData mapData = MapDataLoader.DataOfMap(map_name, isDefaultMap); // convert data to map OnClearMap(); StartCoroutine(DoLoadCreateMap(mapData)); }
public void StartAutonomousMode() { BrowseMapPopup.OpenPopup((map_name, isDefaultMap) => { if (!string.IsNullOrEmpty(map_name)) { Texture mapTexture = null; if (isDefaultMap) { mapTexture = MapDataLoader.TextureOfDefaultMap(map_name); } MapDataLoader.SetInstanceMapData(MapDataLoader.DataOfMap(map_name, isDefaultMap), mapTexture); SceneManager.LoadScene("DesignMapAutonomous"); } }, true); }