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"; } }
public void StartEdit() { mapSession.MapWorker.enabled = true; mapData = mapSession.Maps[0]; buildSuccess = true; }
public void SetMapSession(MapSession session) { mapSession = session; PropDragger.SetMapSession(session); mapData = mapSession.Maps[0]; }