コード例 #1
0
 public void InitDataWaiting()
 {
     if (_BOL_ChoiceHero == null)
     {
         _BOL_ChoiceHero = listStateScene.BOL_ChoiceHero;
         _BOL_ChoiceHero.InitData();
     }
     //if (_BOL_ShowPlayer == null) {
     //	_BOL_ShowPlayer = listStateScene.BOL_ShowPlayer;
     //	_BOL_ShowPlayer.InitData();
     //}
     isInitSuccess = true;
     if (_BOL_PlayBattleleft != null)
     {
         _BOL_PlayBattleleft.ResetData();
         _BOL_PlayBattleleft.SelfDestruction();
         _BOL_PlayBattle_left = null;
         _BOL_PlayBattleleft  = null;
     }
     if (_BOL_PlayBattleright != null)
     {
         _BOL_PlayBattleright.ResetData();
         _BOL_PlayBattleright.SelfDestruction();
         _BOL_PlayBattle_right = null;
         _BOL_PlayBattleright  = null;
     }
     panelUserInfo.RefreshGoldInfo();
 }
コード例 #2
0
    void ActionWaiting(StateScene stateStatus)
    {
        switch (stateStatus)
        {
        case StateScene.showheroandskill:
            _BOL_ShowHeroAndSkill = listStateScene.BOL_ShowHeroAndSkill;
            _BOL_ShowHeroAndSkill.Hide();
            break;

        case StateScene.showplayer:
            //_BOL_ShowPlayer = listStateScene.BOL_ShowPlayer;
            _BOL_ChoiceHero = listStateScene.BOL_ChoiceHero;
            _BOL_ShowPlayer.InitData();
            _BOL_ChoiceHero.Hide();
            break;

        case StateScene.choicehero:
            //_BOL_ShowPlayer = listStateScene.BOL_ShowPlayer;
            _BOL_ChoiceHero = listStateScene.BOL_ChoiceHero;
            _BOL_ShowPlayer.SelfDestruction();
            _BOL_ChoiceHero.Show();
            break;
        }
    }