public override void EndState(int nextState) { //EngineCoreEvents.UIEvent.HideUIEvent.SafeInvoke(UIDefine.UI_GUEST_LOGIN); //背包 if (GlobalInfo.MY_PLAYER_INFO != null) { GlobalInfo.MY_PLAYER_INFO.SyncPlayerBag(); //公告 CSNoticeListRequest res = new CSNoticeListRequest(); res.Type = 2; GameEvents.NetWorkEvents.SendAsyncMsg.SafeInvoke(res); } }
public override void OnShow(object param) { base.OnShow(param); MessageHandler.RegisterMessageHandler(MessageDefine.SCNoticeListResponse, OnResponse); m_close_btn.AddClickCallBack(BtnClose); CSNoticeListRequest res = new CSNoticeListRequest(); #if !NETWORK_SYNC || UNITY_EDITOR GameEvents.NetWorkEvents.SendAsyncMsg.SafeInvoke(res); #else GameEvents.NetWorkEvents.SendMsg.SafeInvoke(res); #endif //Debug.Log("enter show over=="); UserBehaviorStatisticsModules.Instance.LogEvent(UBSEventKeyName.Notice_Show); }