bool OnSaveMapClicked() { if (string.IsNullOrEmpty(currentMapName)) { //TextInputPopup.OpenPopup(DoSaveMap); BrowseMapPopup.OpenPopup(DoSaveMap, false); return(false); } else { DoSaveMap(currentMapName, false); return(true); } }
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); }
void OnSaveAsClicked() { //TextInputPopup.OpenPopup(DoSaveMap); BrowseMapPopup.OpenPopup(DoSaveMap, false); }
void OnLoadMapClicked() { // open map popup BrowseMapPopup.OpenPopup(DoLoadMap, true); }
private void Awake() { Instance = this; }