Beispiel #1
0
 // Use this for initialization
 void Start()
 {
     WatermelonHealth.resetMelon();    //reset melon health
     Controller.resetWavesSurvived();  //reset waves survived
     Controller.setSeeds(START_SEEDS); //reset seed count
     Cursor.visible = true;
 }
Beispiel #2
0
 /**
  * New game button pressed, start a new game
  */
 public void newGame()
 {
     WatermelonHealth.resetMelon();   //reset the melon
     SceneManager.LoadScene("Start"); //go back to the start screen
 }