Esempio n. 1
0
        /// <summary>
        /// Catches CorgiEngineEvents and acts on them, playing the corresponding sounds
        /// </summary>
        /// <param name="engineEvent">CorgiEngineEvent event.</param>
        public virtual void OnInfEvent(CoreEngineEvent engineEvent)
        {
            switch (engineEvent.EventType)
            {
            case CoreEngineEventTypes.Pause:
                Pause();
                break;

            case CoreEngineEventTypes.UnPause:
                UnPause();
                break;
            }
        }
Esempio n. 2
0
 public virtual void OnInfEvent(CoreEngineEvent engineEvent)
 {
     if (engineEvent.EventType == CoreEngineEventTypes.Pause)
     {
         if (MuteSfxOnPause)
         {
             MuteAllSfx();
         }
     }
     if (engineEvent.EventType == CoreEngineEventTypes.UnPause)
     {
         if (MuteSfxOnPause)
         {
             UnmuteAllSfx();
         }
     }
 }