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;
     }
 }
Esempio n. 2
0
 public void NextLevel()
 {
     LevelsManager.GoToNextLevel();
 }
Esempio n. 3
0
 public void Restart()
 {
     LevelsManager.RestartCurrentLevel();
 }