/// <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; } }
public virtual void OnInfEvent(CoreEngineEvent engineEvent) { if (engineEvent.EventType == CoreEngineEventTypes.Pause) { if (MuteSfxOnPause) { MuteAllSfx(); } } if (engineEvent.EventType == CoreEngineEventTypes.UnPause) { if (MuteSfxOnPause) { UnmuteAllSfx(); } } }