Esempio n. 1
0
        void OnDestroy()
        {
            m_instance = null;
            //RemoveEventHandler(EventTypeEnum.ColdWork.ToString(), ColdSkillButton);
            UIEventManager.Instance.RemoveUIEventHandel(UIEventType.AddColdWork, AddColdWork);
            UIEventManager.Instance.RemoveUIEventHandel(UIEventType.RemoveColdWork, RemoveColdWork);
            RemoveEventHandler(EventTypeEnum.EntityUpdateValues.ToString(), UpdateViaNotify);

            for (int i = 0; i < m_guideIDList.Count; i++)
            {
                GuideBtnManager.Instance.DelGuideButton(m_guideIDList[i]);//TODO 81
            }
            m_guideIDList.Clear();
        }
Esempio n. 2
0
 void Awake()
 {
     Isjoystick = GameManager.Instance.UseJoyStick;
     m_instance = this;
     RegisterEventHandler();
 }