コード例 #1
0
 /// <summary>
 /// Изменяет сложность на следующую
 /// </summary>
 public void NextDifficulty()
 {
     if ((int)_difficulty < Enum.GetNames(typeof(CpuDifficulty)).Length - 1)
     {
         _difficulty++;
     }
     else
     {
         _difficulty = 0;
     }
     DifficultyButtonText.text = _difficulty.ToString().ToUpper();
 }
コード例 #2
0
 private void Start()
 {
     _difficulty = Config.Instance.Difficulty;
     DifficultyButtonText.text = _difficulty.ToString().ToUpper();
     _animator = GetComponent <Animator>();
 }