Example #1
0
 void OnActivated(object sender, EventArgs e)
 {
     if (m_currentMusic != null)
     {
         m_musicCategory.Resume();
     }
 }
Example #2
0
        /// <summary>
        /// Resumes all of the audio from an audio category.
        /// </summary>
        /// <param name="audioCategoryName">The name of the audio category to be resumed.</param>
        public static void ResumeCategory(string audioCategoryName)
        {
            AudioCategory category = audioEngine.GetCategory(audioCategoryName);

            if (category.Name != null)
            {
                category.Resume();
            }
        }