// 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); } }
// 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); } }
// 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); } }