예제 #1
0
 private IEnumerator Saving()
 {
     while (mapSession.IsSaving)
     {
         yield return(0);
     }
     if (mapSession.Saved)
     {
         mapSession.StopSetupMapBuilder();
         mapSession.MapWorker.enabled = true;
         mapSession.LoadMapMeta(MapControllerPrefab, true);
         mapData = mapSession.Maps[0];
     }
     else
     {
         //var buttonText = SaveButton.GetComponentInChildren<Text>();
         //buttonText.text = "Retry";
     }
 }
예제 #2
0
 public void StartEdit()
 {
     mapSession.MapWorker.enabled = true;
     mapData      = mapSession.Maps[0];
     buildSuccess = true;
 }
예제 #3
0
 public void SetMapSession(MapSession session)
 {
     mapSession = session;
     PropDragger.SetMapSession(session);
     mapData = mapSession.Maps[0];
 }