예제 #1
0
        public IEnumerator PreviewMap(Mark mark)
        {
            Debug.Log("PreviewMap");
            previewEdit.gameObject.SetActive(true);
            yield return(Window.instance.startCoroutine(LoadMetaFile(mark)));

            CreateSession();
            previewEdit.SetMapSession(mapSession);
            mapSession.LoadMapMeta(MapControllerPrefab, false);
            ShowParticle(false);
        }
예제 #2
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";
     }
 }