Пример #1
0
 private void OnHeadsetCollision(object sender, HeadsetCollisionEventArgs e)
 {
     if (resetPositionOnCollision && lastGoodPositionSet)
     {
         transform.position = lastGoodPosition;
     }
 }
Пример #2
0
 public virtual void OnHeadsetCollisionEnded(HeadsetCollisionEventArgs e)
 {
     if (HeadsetCollisionEnded != null)
     {
         HeadsetCollisionEnded(this, e);
     }
 }
Пример #3
0
 public virtual void OnHeadsetCollisionDetect(HeadsetCollisionEventArgs e)
 {
     if (HeadsetCollisionDetect != null)
     {
         HeadsetCollisionDetect(this, e);
     }
 }
Пример #4
0
 private void OnHeadsetCollisionEnded(object sender, HeadsetCollisionEventArgs e)
 {
     headsetFade.Unfade(0.1f);
     headsetColliding = false;
 }
Пример #5
0
 private void OnHeadsetCollisionDetected(object sender, HeadsetCollisionEventArgs e)
 {
     headsetFade.Fade(Color.black, 0.1f);
     headsetColliding = true;
 }
 private void OnHeadsetCollisionEnded(object sender, HeadsetCollisionEventArgs e)
 {
     headsetFade.Unfade(blinkTransitionSpeed);
 }
 private void OnHeadsetCollisionDetect(object sender, HeadsetCollisionEventArgs e)
 {
     headsetFade.Fade(fadeColor, blinkTransitionSpeed);
 }
 private void EnableTeleport(object sender, HeadsetCollisionEventArgs e)
 {
     basicTeleport.ToggleTeleportEnabled(true);
 }