Example #1
0
 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);
 }
Example #3
0
 void OnSaveAsClicked()
 {
     //TextInputPopup.OpenPopup(DoSaveMap);
     BrowseMapPopup.OpenPopup(DoSaveMap, false);
 }
Example #4
0
 void OnLoadMapClicked()
 {
     // open map popup
     BrowseMapPopup.OpenPopup(DoLoadMap, true);
 }
Example #5
0
 private void Awake()
 {
     Instance = this;
 }