public void BackToMenu() { startButton.SetActive(true); CreditsButton.SetActive(true); exitButton.SetActive(true); Destroy(GameObject.FindGameObjectWithTag("BackButton")); Destroy(GameObject.FindGameObjectWithTag("CreditsText")); }
public void helpBackClicked() { HelpText.SetActive(false); HelpBackButton.SetActive(false); StartButton.SetActive(true); CreditsButton.SetActive(true); ExitButton.SetActive(true); HelpButton.SetActive(true); }
public void creditsClicked() { BackCreditsButton.SetActive(true); CreditsText.SetActive(true); StartButton.SetActive(false); CreditsButton.SetActive(false); ExitButton.SetActive(false); HelpButton.SetActive(false); }
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); }