public void ActionWaiting(StateScene stateStatus)
    {
        isInitSuccess = false;
        _BOL_ShowHeroAndSkill.Hide();
        switch (stateStatus)
        {
        case StateScene.showplayer:
            if (_BOL_ChoiceHero != null)
            {
                _BOL_ChoiceHero.Hide();
                //_BOL_ShowPlayer.Show();
                //imageVS.gameObject.SetActive(true);
                //if (tweenScale != null) {
                //	LeanTween.cancel(imageVS.gameObject, tweenScale.uniqueId);
                //	tweenScale = null;
                //}
                //tweenScale = LeanTween.scale(imageVS.gameObject, Vector3.one, 0.5f).setOnComplete(() => { tweenScale = null; }).setEase(LeanTweenType.easeOutBack);
            }
            break;

        case StateScene.choicehero:
            Debug.Log("choice hero   " + ChairPosition);
            _BOL_ShowHeroAndSkill.Hide();
            _BOL_ChoiceHero.Hide();
            if (ChairPosition == Constant.CHAIR_LEFT || ChairPosition == Constant.CHAIR_RIGHT)
            {
                _BOL_ChoiceHero.Show();
            }
            break;

        case StateScene.choiceherofinishgame:
            _BOL_ShowHeroAndSkill.Hide();
            break;
        }
    }
 public void ActionPlaying()
 {
     isInitSuccess = false;
     if (ChairPosition == Constant.CHAIR_LEFT || ChairPosition == Constant.CHAIR_RIGHT)
     {
         _BOL_ShowHeroAndSkill.Show();
     }
     else
     {
         //if (tweenScale != null) {
         //	LeanTween.cancel(imageVS.gameObject, tweenScale.uniqueId);
         //	tweenScale = null;
         //}
         //tweenScale = LeanTween.scale(imageVS.gameObject, Vector3.zero, 0.2f).setOnComplete(() => {
         //	tweenScale = null;
         //}).setEase(LeanTweenType.easeInBack);
     }
     _BOL_ChoiceHero.Hide();
     _BOL_PlayBattle_left.InitData();
     _BOL_PlayBattle_right.InitData();
 }
Exemplo n.º 3
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;
        }
    }