public void OnResume() { am.PlayAudio("ButtonSelect"); pauseMenu.SetActive(false); GameManager.instance.player.SetActive(true); Time.timeScale = 1; }
void OnClick() { am.PlayAudio("ButtonSelect"); am.Mute(); if (am.mute) { displayText.text = "MUSIC: OFF"; } else { displayText.text = "MUSIC: ON"; } }
void OnStart() { am.PlayAudio("ButtonSelect"); Debug.Log("Game Started"); GameManager.instance.SetCurrentGameState(GameManager.GameState.TUTORIAL); }
void OnRestart() { am.PlayAudio("ButtonSelect"); GameManager.instance.SetCurrentGameState(GameManager.GameState.IN_GAME); }