private IEnumerator <YieldInstruction> exitMapEdit() { DevForm form = (DevForm)DiagManager.Instance.DevEditor; form.MapEditForm = null; //move to the previous scene or the title, if there was none if (DataManager.Instance.Save != null && DataManager.Instance.Save.NextDest.IsValid()) { yield return(CoroutineManager.Instance.StartCoroutine(GameManager.Instance.MoveToZone(DataManager.Instance.Save.NextDest))); } else { yield return(CoroutineManager.Instance.StartCoroutine(GameManager.Instance.RestartToTitle())); } }
public void ProcessInput(InputManager input) { MapEditViewModel vm = (MapEditViewModel)DataContext; DevForm.ExecuteOrInvoke(() => vm.ProcessInput(input)); }