protected virtual void OnDisable() { MMCameraShakeEvent.Unregister(OnCameraShakeEvent); }
/// <summary> /// On disable, we stop listening to events /// </summary> protected virtual void OnDisable() { this.MMEventStopListening <CorgiEngineEvent> (); this.MMEventStopListening <MMCameraEvent>(); MMCameraShakeEvent.Unregister(OnCameraShakeEvent); }