public void SetRespone(Result result) { if (m_yield != null) { m_yield.MarkAsFinished(result); } ModalManager manager = ModalManager.hidden_instance; NotifyDone(manager, result); }
void Start() { ModalManager manager = ModalManager.hidden_instance; ModalMenuInput <Result> data = manager.ExtractData <Result>(this); if (data == null) { data = DefaultInput(); manager.StartWithGameplay(data, this); } UnityEngine.EventSystems.EventSystem.current.SetSelectedGameObject(m_initialSelectable.gameObject); Initialize(data as Input); m_yield = data.yielder; m_id = data.id; }
void Start() { m_canvas = GetComponent <Canvas>(); ModalManager manager = ModalManager.hidden_instance; ModalMenuInput <Result> data = manager.ExtractData <Result>(); if (data == null) { data = DefaultInput(); } m_canvas.sortingOrder = manager.GetCurrentSortingLayer(); if (UnityEngine.EventSystems.EventSystem.current == null) { GameObject ev = new GameObject("tmp_EventSystem"); ev.AddComponent <UnityEngine.EventSystems.EventSystem>(); } UnityEngine.EventSystems.EventSystem.current.SetSelectedGameObject(m_initialSelectable.gameObject); Initialize(data as Input); m_yield = data.yielder; m_id = data.id; }
protected void NotifyDone(ModalManager manager, Result result) { manager.NotifyModalDone(result, m_id); }