Example #1
0
 /// <summary>
 /// On stop we stop our transition
 /// </summary>
 /// <param name="position"></param>
 /// <param name="feedbacksIntensity"></param>
 protected override void CustomStopFeedback(Vector3 position, float feedbacksIntensity = 1)
 {
     base.CustomStopFeedback(position, feedbacksIntensity);
     if (Active)
     {
         MMCameraClippingPlanesShakeEvent.Trigger(ShakeNear, FeedbackDuration, RemapNearZero, RemapNearOne,
                                                  ShakeFar, RemapFarZero, RemapFarOne, stop: true);
     }
 }
Example #2
0
 /// <summary>
 /// Triggers the corresponding coroutine
 /// </summary>
 /// <param name="position"></param>
 /// <param name="feedbacksIntensity"></param>
 protected override void CustomPlayFeedback(Vector3 position, float feedbacksIntensity = 1.0f)
 {
     if (Active)
     {
         MMCameraClippingPlanesShakeEvent.Trigger(ShakeNear, FeedbackDuration, RemapNearZero, RemapNearOne,
                                                  ShakeFar, RemapFarZero, RemapFarOne,
                                                  RelativeClippingPlanes,
                                                  feedbacksIntensity, Channel, ResetShakerValuesAfterShake, ResetTargetValuesAfterShake, NormalPlayDirection, Timing.TimescaleMode);
     }
 }
 /// <summary>
 /// Triggers the corresponding coroutine
 /// </summary>
 /// <param name="position"></param>
 /// <param name="attenuation"></param>
 protected override void CustomPlayFeedback(Vector3 position, float attenuation = 1.0f)
 {
     if (Active)
     {
         MMCameraClippingPlanesShakeEvent.Trigger(ShakeNear, Duration, RemapNearZero, RemapNearOne,
                                                  ShakeFar, RemapFarZero, RemapFarOne,
                                                  RelativeClippingPlanes,
                                                  attenuation, Channel, ResetShakerValuesAfterShake, ResetTargetValuesAfterShake);
     }
 }
 /// <summary>
 /// On stop we stop our transition
 /// </summary>
 /// <param name="position"></param>
 /// <param name="feedbacksIntensity"></param>
 protected override void CustomStopFeedback(Vector3 position, float feedbacksIntensity = 1)
 {
     if (!Active || !FeedbackTypeAuthorized)
     {
         return;
     }
     base.CustomStopFeedback(position, feedbacksIntensity);
     MMCameraClippingPlanesShakeEvent.Trigger(ShakeNear, FeedbackDuration, RemapNearZero, RemapNearOne,
                                              ShakeFar, RemapFarZero, RemapFarOne, stop: true);
 }
 /// <summary>
 /// Stops listening for events
 /// </summary>
 public override void StopListening()
 {
     base.StopListening();
     MMCameraClippingPlanesShakeEvent.Unregister(OnMMCameraClippingPlanesShakeEvent);
 }