Ejemplo n.º 1
0
        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()));
            }
        }
Ejemplo n.º 2
0
        public void ProcessInput(InputManager input)
        {
            MapEditViewModel vm = (MapEditViewModel)DataContext;

            DevForm.ExecuteOrInvoke(() => vm.ProcessInput(input));
        }