Beispiel #1
0
    void LoadMenu()                          // loads the mainMenu
    {
        gameRunning = false;                 // set the game to not be running
        shooter.Deactivate();                // deactivate the shooter
        audioManager.PlaySound("menu");      // starts playing the menu music
        dog.StartLoopingAnimation("Pacing"); // make start the dog pacing

        foreach (GameObject panel in menuPanels)
        {
            panel.SetActive(true);  // activate all of the menu panels
        }

        foreach (GameObject panel in gamePanels)
        {
            panel.SetActive(false); // deactivate all of the game panels
        }

        StopAllCoroutines();
    }
Beispiel #2
0
 public void StopSession()
 {
     _grid.Deactivate();
     _shooter.Deactivate();
     SaveLevelAndScore();
 }