void Start()
    {
        _instance       = this;
        _isSelectedRole = false;
        disableSkill1   = false;
        disableSkill2   = false;
        _timeScale      = 1;

        if (GameManager.battleType == BattleMode.Challenge || GameManager.battleType == BattleMode.RandomPvP)
        {
            //uiToggleAuto.gameObject.SetActive(false);
            chkAutoSkill.gameObject.SetActive(false);
        }

        _timerLastCoolTime = Time.time;

        if (GameManager.battleType == BattleMode.RandomPvE)
        {
            lblTimer.gameObject.SetActive(false);
        }

        if (GameManager.battleType == BattleMode.RandomPvP || GameManager.battleType == BattleMode.Challenge)
        {
            lblButtonSpeed.transform.parent.gameObject.SetActive(false);
        }
        else
        {
            lblButtonSpeed.text = string.Format(GameManager.localization.GetText("Battle_Speed"), _timeScale);
        }

        if (GameManager.tutorial.step < TutorialManager.TutorialStep.Finished)
        {
            lblButtonSpeed.transform.parent.gameObject.SetActive(false);
        }
    }
Example #2
0
 private void Awake()
 {
     Instance = this;
 }