public void Play() { sceneFader.fadeTo(leveltoLoad); }
public void continueToNextLevel() { PlayerPrefs.SetInt("levelReached", levelToUnlock); sceneFader.fadeTo(nextLevel); }
public void select(string levelName) { sceneFader.fadeTo(levelName); }
public void menu() { sceneFader.fadeTo(menuSceneName); }
public void retry() { sceneFader.fadeTo(SceneManager.GetActiveScene().name); }
//restart the game public void retry() { togglePauseMenu(); sceneFader.fadeTo(SceneManager.GetActiveScene().name); }
public void play() { sceneFader.fadeTo(levelToLoad); Debug.Log("Play !!"); }
public void Select(string levelname) { fader.fadeTo(levelname); }
public void levelSelect(string levelName) { fader.fadeTo(levelName); }
public void OpenLevelSelect() { scenefader.fadeTo("LevelSelect"); }
public void menu() { toggle(); sceneFader.fadeTo(menuSceneName); }
void OnTriggerEnter(Collider player) { fader.fadeTo(NextLevelName); PlayerPrefs.SetInt("levelReached", NextLevelIndex); }
public void LevelSelect() { sceneFader.fadeTo("LevelSelect"); }
public void play() { sceneFader.fadeTo(levelToLoad); }