public void GameOver(System.Object sender, System.EventArgs e) { m_NextTargetArrow.SetActive(false); m_InGameUI.SetActive(false); m_EnemiesManagerScript.StopAllEnemies(); m_EnemyManager.SetActive(false); m_GameOver.SetActive(true); m_GameOverScript.enabled = true; if ((SceneManager.GetActiveScene().name == "Level2") && (m_CheckPointManagerScript.LevelCompleted)) { m_GameCompletedAudioSource.clip = m_LevelCompletedSound; } //Play either the default failure sound or success sound (m_LevelCompletedSound) m_GameCompletedAudioSource.Play(); }