public void OnPlay() { levelChanger.FadoutToLevel(levelToLoad); }
public void RestartLevel() { levelChanger.FadoutToLevel(SceneManager.GetActiveScene().buildIndex); // SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex); }
public void OnPlay() { levelChanger.FadoutToLevel(levelToLoad); }
public void RestartLevel() { levelChanger.FadoutToLevel(SceneManager.GetActiveScene().buildIndex); // SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex); }