/// <summary> /// On enable we start listening for events /// </summary> protected virtual void OnEnable() { MMSfxEvent.Register(OnMMSfxEvent); this.MMEventStartListening <TopDownEngineEvent>(); this.MMEventStartListening <MMGameEvent>(); LoadSoundSettings(); _loopingSounds = new List <AudioSource>(); }
/// <summary> /// On enable we start listening for events /// </summary> protected virtual void OnEnable() { MMSfxEvent.Register(OnMMSfxEvent); this.MMEventStartListening <MMGameEvent>(); this.MMEventStartListening <CorgiEngineEvent>(); LoadSoundSettings(); _loopingSounds = new List <AudioSource> (); SceneManager.sceneLoaded += OnSceneLoaded; }