Exemple #1
0
 /// <summary>
 /// On disable we stop listening for events
 /// </summary>
 protected virtual void OnDisable()
 {
     if (_enabled)
     {
         MMSfxEvent.Unregister(OnMMSfxEvent);
         this.MMEventStopListening <TopDownEngineEvent>();
         this.MMEventStopListening <MMGameEvent>();
     }
 }
        /// <summary>
        /// On disable we stop listening for events
        /// </summary>
        protected virtual void OnDisable()
        {
            if (_enabled)
            {
                MMSfxEvent.Unregister(OnMMSfxEvent);
                this.MMEventStopListening <MMGameEvent>();
                this.MMEventStopListening <CorgiEngineEvent>();

                SceneManager.sceneLoaded -= OnSceneLoaded;
            }
        }