Example #1
0
 public void ReturnToMenu()
 {
     levelPasser = GameObject.FindObjectOfType <LevelPasser>();
     levelPasser.resetFloor();
     SceneManager.LoadScene("MainMenu");
 }
Example #2
0
 public void RestartGame()
 {
     levelPasser = GameObject.FindObjectOfType <LevelPasser>();
     levelPasser.resetFloor();
     SceneManager.LoadScene("SampleScene");
 }