Beispiel #1
0
 public void BackToMenu()
 {
     startButton.SetActive(true);
     CreditsButton.SetActive(true);
     exitButton.SetActive(true);
     Destroy(GameObject.FindGameObjectWithTag("BackButton"));
     Destroy(GameObject.FindGameObjectWithTag("CreditsText"));
 }
Beispiel #2
0
 public void helpBackClicked()
 {
     HelpText.SetActive(false);
     HelpBackButton.SetActive(false);
     StartButton.SetActive(true);
     CreditsButton.SetActive(true);
     ExitButton.SetActive(true);
     HelpButton.SetActive(true);
 }
Beispiel #3
0
 public void creditsClicked()
 {
     BackCreditsButton.SetActive(true);
     CreditsText.SetActive(true);
     StartButton.SetActive(false);
     CreditsButton.SetActive(false);
     ExitButton.SetActive(false);
     HelpButton.SetActive(false);
 }
Beispiel #4
0
    public void Credits()
    {
        startButton.SetActive(false);
        CreditsButton.SetActive(false);
        exitButton.SetActive(false);

        Button backButton = Instantiate(back);

        backButton.transform.SetParent(this.transform, false);
        //backButton.gameObject.SetActive(true);
        backButton.onClick.AddListener(BackToMenu);

        Text credits = Instantiate(creditsText);

        credits.transform.SetParent(this.transform, false);
    }