Esempio n. 1
0
 /// <summary>
 /// The Unfade method initiates the headset to change colour back to a transparent colour over a given duration.
 /// </summary>
 /// <param name="duration">The time in seconds to take to complete the unfade transition.</param>
 public virtual void Unfade(float duration)
 {
     isFaded         = true;
     isTransitioning = true;
     VRTK_SDK_Bridge.HeadsetFade(Color.clear, duration);
     OnHeadsetUnfadeStart(SetHeadsetFadeEvent(transform, duration));
     CancelInvoke("FadeComplete");
     Invoke("UnfadeComplete", duration);
 }
Esempio n. 2
0
 private void ReleaseBlink()
 {
     VRTK_SDK_Bridge.HeadsetFade(Color.clear, fadeInTime);
     fadeInTime = 0f;
 }
Esempio n. 3
0
 protected virtual void Blink(float transitionSpeed)
 {
     fadeInTime = transitionSpeed;
     VRTK_SDK_Bridge.HeadsetFade(Color.black, 0);
     Invoke("ReleaseBlink", blinkPause);
 }