Esempio n. 1
0
 // Displays the Tutorial Window in the Main Menu
 public void Tutorial()
 {
     if (TutorialMenu.activeInHierarchy == false)
     {
         //closes other windows if open
         CreditMenu.SetActive(false);
         HighscoreMenu.SetActive(false);
         //open tutorial
         TutorialMenu.SetActive(true);
     }
     else
     {
         TutorialMenu.SetActive(false);
     }
 }
Esempio n. 2
0
 // Displays the Credits Window in the Main Menu
 public void Credit()
 {
     if (CreditMenu.activeInHierarchy == false)
     {
         //closes other windows if open
         TutorialMenu.SetActive(false);
         HighscoreMenu.SetActive(false);
         //open credits
         CreditMenu.SetActive(true);
     }
     else
     {
         CreditMenu.SetActive(false);
     }
 }
Esempio n. 3
0
 // Displays the High Score Window in the Main Menu
 public void HighScore()
 {
     if (HighscoreMenu.activeInHierarchy == false)
     {
         //closes other windows if open
         CreditMenu.SetActive(false);
         TutorialMenu.SetActive(false);
         //open high scores
         HighscoreMenu.SetActive(true);
     }
     else
     {
         HighscoreMenu.SetActive(false);
     }
 }
Esempio n. 4
0
 protected override void Awake()
 {
     base.Awake();
     highscoreMenu = (HighscoreMenu)menu;
     audioManager  = FindObjectOfType <AudioManager>();
 }