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