Example #1
0
 protected virtual void OnHeadsetCollisionEnded(object sender, HeadsetCollisionEventArgs e)
 {
     if (ValidTarget(e.collider))
     {
         CancelInvoke("StartFade");
         headsetFade.Unfade(blinkTransitionSpeed);
     }
 }
Example #2
0
        void doFade()
        {
            var go = Fsm.GetOwnerDefaultTarget(gameObject);

            if (go == null)
            {
                return;
            }

            if (startFade.Value)
            {
                headset.Fade(fadeColor.Value, fadeDuration.Value);
            }

            if (!startFade.Value)
            {
                headset.Unfade(fadeDuration.Value);
            }
        }
 private void OnHeadsetCollisionEnded(object sender, HeadsetCollisionEventArgs e)
 {
     headsetFade.Unfade(blinkTransitionSpeed);
 }
Example #4
0
 private void OnHeadsetCollisionEnded(object sender, HeadsetCollisionEventArgs e)
 {
     headsetFade.Unfade(0.1f);
     headsetColliding = false;
 }
 protected virtual void OnHeadsetCollisionEnded(object sender, HeadsetCollisionEventArgs e)
 {
     headsetFade.Unfade(blinkTransitionSpeed);
 }