public override void Start() { view.ChangeBackground(); UpdateTopBar(); EventDispatcher.AddEventListener(EventConst.CreateActivityContenet, CreateActivityContenet); EventDispatcher.AddEventListener(EventConst.UpdateUserMoney, UpdateTopBar); EventDispatcher.AddEventListener(EventConst.UpdateEnergy, UpdateTopBar); EventDispatcher.AddEventListener <RepeatedField <UserBuyRmbMallPB> >(EventConst.GetPayInfoSuccess, arr => { UpdateTopBar(); }); EventDispatcher.AddEventListener(EventConst.UserLevelUp, OnUserLevelup); EventDispatcher.AddEventListener(EventConst.MainLineLevelUpdate, view.HandleFunctionOpen); EventDispatcher.AddEventListener(EventConst.OnDataLoadComplete, OnDataLoadComplete); EventDispatcher.AddEventListener <int>(EventConst.ActivitySignInClick, OnActivitySignInClick); EventDispatcher.AddEventListener <int>(EventConst.LoveDiaryEditSaveAndGoBackMainModule, OnLoveDiaryEditSaveAndGoBackMainModule); EventDispatcher.AddEventListener <bool>(EventConst.ChangeTopPower, SetPowerState); EventDispatcher.AddEventListener <PlayerVo>(EventConst.UpDataUserName, UpDataUserName); EventDispatcher.AddEventListener <bool>(EventConst.CloseFirstRechargeBtn, CloseFirstRechargeBtn); EventDispatcher.AddEventListener(EventConst.RefreshActivityImageAndActivityPage, RefreshActivityImageAndActivityPage); EventDispatcher.AddEventListener(EventConst.RefreshPoint, SendRedPoint); EventDispatcher.AddEventListener(EventConst.UpdateExchangeIntegral, UpdateExchangeIntegral); EventDispatcher.AddEventListener(EventConst.ShowStoreScore, OnScoreStore); EventDispatcher.AddEventListener(EventConst.OnTriggerGiftChange, OnTriggerGiftChange); EventDispatcher.AddEventListener <RepeatedField <long> >(EventConst.TriggerGiftPaySuccess, OnGiftChange); // EventDispatcher.AddEventListener(EventConst.ShowConfirmBind,OpenConfirmWindow); EventDispatcher.AddEventListener(EventConst.SettingUserInfoUpdate, SetIsAddictionTime); EventDispatcher.AddEventListener(EventConst.GetRealNameAward, GetRealNameAward); EventDispatcher.AddEventListener(EventConst.UpdateMainViewHeadInfo, UpdateMainViewHeadInfo); InitMainLive2d(); ShowWindow(); _lastDate = new DateTime(ClientTimer.Instance.GetCurrentTimeStamp()); _dailyRefreshtimer = ClientTimer.Instance.AddCountDown("DailyRefresh", long.MaxValue, 5, DailyRefresh, null); // CheckAddicationTime(); OnTriggerGiftChange(); SetGameLoginHasChange(); SetIsAddictionTime(); }