private void Awake()
 {
     //lazy static singleton pattern
     //im not actually sure we need this lol.
     if (Instance != null)
     {
         Destroy(this.gameObject);
     }
     else
     {
         Instance   = this;
         GameLevels = _gameLevels as ILevelCollection;
     }
 }
Пример #2
0
 public void NextLevel()
 {
     LevelsManager.GoToNextLevel();
 }
Пример #3
0
 public void Restart()
 {
     LevelsManager.RestartCurrentLevel();
 }