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); }
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"; } }