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