/// <summary>
 /// Stops this feedback
 /// </summary>
 /// <param name="position"></param>
 /// <param name="feedbacksIntensity"></param>
 protected override void CustomStopFeedback(Vector3 position, float feedbacksIntensity = 1)
 {
     base.CustomStopFeedback(position, feedbacksIntensity);
     if (Active)
     {
         if (TargetShaderController != null)
         {
             TargetShaderController.Stop();
         }
     }
 }
示例#2
0
        /// <summary>
        /// Stops this feedback
        /// </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);

            if (TargetShaderController != null)
            {
                TargetShaderController.Stop();
            }

            foreach (ShaderController shaderController in TargetShaderControllerList)
            {
                shaderController.Stop();
            }
        }