示例#1
0
        public void SetRespone(Result result)
        {
            if (m_yield != null)
            {
                m_yield.MarkAsFinished(result);
            }
            ModalManager manager = ModalManager.hidden_instance;

            NotifyDone(manager, result);
        }
示例#2
0
        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;
        }
示例#3
0
        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;
        }
示例#4
0
 protected void NotifyDone(ModalManager manager, Result result)
 {
     manager.NotifyModalDone(result, m_id);
 }