コード例 #1
0
        public override void OnHide()
        {
            base.OnHide();

            m_is_start_timer = false;
            MessageHandler.UnRegisterMessageHandler(MessageDefine.SCRegGuestResponse, OnScResponse);
            MessageHandler.UnRegisterMessageHandler(MessageDefine.SCIdentifyCheckRepsonse, OnScResponse);
            MessageHandler.UnRegisterMessageHandler(MessageDefine.SCPlayerInfoResponse, OnScResponse);
            //MessageHandler.UnRegisterMessageHandler(MessageDefine.SCPlayerPropResponse, OnScResponse);
            MessageHandler.UnRegisterMessageHandler(MessageDefine.SCFBLoginResponse, OnScResponse);
            MessageHandler.UnRegisterMessageHandler(MessageDefine.SCFBBindResponse, OnScResponse);
            //MessageHandler.UnRegisterMessageHandler(MessageDefine.SCNoticeListResponse, OnScResponse);
            MessageHandler.UnRegisterMessageHandler(MessageDefine.SCPlayerGuildResponse, OnScResponse);
            MessageHandler.UnRegisterMessageHandler(MessageDefine.SCGetPushResponse, OnScResponse);
            MessageHandler.UnRegisterMessageHandler(MessageDefine.SCIdentifyCheckMuiltyMessage, OnScResponse);

            GameEvents.UIEvents.UI_FB_Event.Listen_FbLoginStatusChanged -= SetFBBtnIcon;

            m_login_btn.RemoveClickCallBack(OnNormalVersionClicked);
            m_fackbook_btn.RemoveClickCallBack(OnFBVersionClicked);

            LocalDataManager.Instance.Is_login = false;

            PopUpManager.ClosePopUp();

            GameEvents.UIEvents.UI_FB_Event.Listen_FbLoginStatusChanged.SafeInvoke();
        }