void Update() { if (Input.GetButtonDown("p1Jump")) { menuNav.GoToScreen("Game Mode"); } }
void SelectGameOverOption() { if (currentIndex == 0) { menuNav.StartGame(); level.RestartGame(); } else { GameController.state = "menu"; menuNav.GoToScreen("Main Menu"); level.DestroyPlayers(); } currentIndex = 0; selectionBox.position = selections[currentIndex].position; }
public void ShowGameOverMenu() { GameController.state = "gameover"; menuNav.GoToScreen("Game Over"); }