void OnDeactivated(object sender, EventArgs e) { if (m_currentMusic != null) { m_musicCategory.Pause(); } }
/// <summary> /// Pauses all of the audio from an audio category. /// </summary> /// <param name="audioCategoryName">The name of the audio category to be stopped.</param> public static void PauseAudioCategory(string audioCategoryName) { AudioCategory category = audioEngine.GetCategory(audioCategoryName); if (category.Name != null) { category.Pause(); } }