Exemplo n.º 1
0
 void Awake()
 {
     this.RegisterEventHandler();
     SysButtonPanel_BottomRight.transform.localPosition = new Vector3(CommonDefineManager.Instance.CommonDefine.TownstartPoint3.BasePostion.x, CommonDefineManager.Instance.CommonDefine.TownstartPoint3.BasePostion.y, 0);
     SysButtonPanel_TopRight.transform.localPosition    = new Vector3(CommonDefineManager.Instance.CommonDefine.TownstartPoint2.BasePostion.x, CommonDefineManager.Instance.CommonDefine.TownstartPoint2.BasePostion.y, 0);
     SysButtonPanel_TopLeft.transform.localPosition     = new Vector3(CommonDefineManager.Instance.CommonDefine.TownstartPoint1.BasePostion.x, CommonDefineManager.Instance.CommonDefine.TownstartPoint1.BasePostion.y, 0);
     instance      = this;
     m_rotationObj = SysButton.transform.FindChild("RotationObj").gameObject;
 }
Exemplo n.º 2
0
        void OnDestroy()
        {
            instance = null;
            UIEventManager.Instance.RemoveUIEventHandel(UIEventType.InitMainButton, InitMainUIButton);
            UIEventManager.Instance.RemoveUIEventHandel(UIEventType.OpentMainUI, OpenMainUIEvent);
            UIEventManager.Instance.RemoveUIEventHandel(UIEventType.CloseMainUI, CloseBtnPanelHandle);
            UIEventManager.Instance.RemoveUIEventHandel(UIEventType.EnableMainButton, AddMainButton);
            UIEventManager.Instance.RemoveUIEventHandel(UIEventType.ShowTopCommonUI, ShowCommonTop);
            UIEventManager.Instance.RemoveUIEventHandel(UIEventType.OpenSystemButton, OnSysBtnClick);
            UIEventManager.Instance.RemoveUIEventHandel(UIEventType.PlayMainBtnAnim, PlayMainBtnAnimation);
            UIEventManager.Instance.RemoveUIEventHandel(UIEventType.StopMainBtnAnim, StopMainBtnAnimation);

            //TODO GuideBtnManager.Instance.DelGuideButton(m_guideBtnID);
            //this.RemoveEventHandler(EventTypeEnum.CloseSystemMainBtn.ToString(), CloseBtnPanelHandle);
        }