public void ReturnToMainMenu() { areUSurePanel.SetActive(true); pausePanel.gameObject.SetActive(false); areUSurePanel.transform.GetChild(0).GetChild(0).GetComponent <Text>().text = returnToMainMenuText.ToString(); cUI.Select(canvas.transform.GetChild(5).GetChild(1).gameObject); }
public void StateUpdate() { if (Input.GetKeyUp(KeyCode.Escape) /*|| Input.GetKeyUp(KeyCode.Joystick1Button7)*/) { gameStateManager.SwitchState(new PauseState(gameStateManager)); canvas.transform.GetChild(3).transform.gameObject.SetActive(false); cUI.Select(canvas.transform.GetChild(4).GetChild(1).gameObject); } }
public void StateUpdate() { if (Input.GetKeyUp(KeyCode.Joystick1Button7) || Input.GetKeyUp(KeyCode.Escape) || Input.GetKeyUp(KeyCode.Space)) { gameStateManager.SwitchState(new MainMenuState(gameStateManager)); canvas.transform.GetChild(1).transform.gameObject.SetActive(false); audioManager.PlaySelect(); cUI.Select(canvas.transform.GetChild(2).GetChild(0).gameObject); } }
public void StateUpdate() { if (Input.GetKeyUp(KeyCode.Escape) || Input.GetKeyUp(KeyCode.Joystick1Button1)) { gameStateManager.SwitchState(new BeginState(gameStateManager)); canvas.transform.GetChild(1).gameObject.SetActive(true); canvas.transform.GetChild(2).gameObject.SetActive(false); audioManager.PlayPause(); cUI.Select(canvas.transform.GetChild(1).gameObject); } if (Input.GetKeyUp(KeyCode.UpArrow) || Input.GetKeyUp(KeyCode.DownArrow)) { audioManager.PlayMoveJoyStickSound(); } }