Пример #1
0
 void Update()
 {
     if (Input.GetButtonDown("p1Jump"))
     {
         menuNav.GoToScreen("Game Mode");
     }
 }
Пример #2
0
    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;
    }
Пример #3
0
    public void ShowGameOverMenu()
    {
        GameController.state = "gameover";

        menuNav.GoToScreen("Game Over");
    }