Exemplo n.º 1
0
        public override void OnGameStateChange(GameState oldState, GameState newState)
        {
            if (!this.enable)
            {
                return;
            }
            switch (newState)
            {
            case GameState.Game_Playing:
                MobaMessageManagerTools.BattleShop_initData(Singleton <PvpManager> .Instance.IsContinuedBattle, BattleEquipTools_op.GetBattleShopContex(), LevelManager.CurLevelId, BattleEquipTools_op.GetShopTypeByTeamType(), ModelManager.Instance.Get_SettingData().recommendOn);
                this.coroutineMng.StartCoroutine(this.Check(), true);
                this.coroutineMng.StartCoroutine(this.UpdateWallet(), true);
                break;

            case GameState.Game_Over:
                this.CloseView_ShopView();
                this.CloseView_BagView();
                break;
            }
        }