public void Instructions() { gameObject.SetActive(false); InstructionsPanel.SetActive(true); MainMenuPanel.SetActive(false); PausePanel.SetActive(false); Console.WriteLine("Instructions menu controller"); }
//Back to main menu public void BackToMenu() { //gameObject.SetActive(false); MainMenuPanel.SetActive(true); PausePanel.SetActive(false); OptionsPanel.SetActive(false); CreditsPanel.SetActive(false); InstructionsPanel.SetActive(false); GameOverPanel.SetActive(false); GameController.Instance.state = eState.TITLE; Console.WriteLine("BacktoMenu menu controller"); }
public void Pause() { if (GameController.Instance.state == eState.GAME) { PausePanel.SetActive(true); MainMenuPanel.SetActive(false); OptionsPanel.SetActive(false); CreditsPanel.SetActive(false); InstructionsPanel.SetActive(false); GameOverPanel.SetActive(false); GameController.Instance.state = eState.PAUSE; } }