コード例 #1
0
 private void Awake()
 {
     _currentDificulty = LevelDificulty.AClass;
     for (int i = 0; i < _startingTiles; i++)
     {
         Spawn();
     }
 }
コード例 #2
0
    private void ChangeDifficulty()
    {
        switch (_currentDificulty)
        {
        case LevelDificulty.AClass:
            _currentDificulty = LevelDificulty.BClass;
            break;

        case LevelDificulty.BClass:
            _currentDificulty = LevelDificulty.CClass;
            break;

        case LevelDificulty.CClass:
            _currentDificulty = LevelDificulty.All;
            break;
        }
    }
コード例 #3
0
 public void SetDificulty(int dif = (int)LevelDificulty.Easy)
 {
     Debug.Log(dif);
     Global.DIFICULTY = (LevelDificulty)dif;
     SceneManager.LoadScene("Game");
 }
コード例 #4
0
 void Awake()
 {
     _currentDificulty = LevelDificulty.AClass;
     Spawn();
 }