예제 #1
0
 public virtual void EndCollision(Collider collider)
 {
     if (collider == null || !VRTK_PlayerObject.IsPlayerObject(collider.gameObject))
     {
         parent.headsetColliding = false;
         parent.collidingWith    = null;
         parent.OnHeadsetCollisionEnded(SetHeadsetCollisionEvent(collider, transform));
     }
 }
예제 #2
0
 public void EndCollision(Collider collider)
 {
     if (!collider || !collider.GetComponent <VRTK_PlayerObject>())
     {
         parent.headsetColliding = false;
         parent.collidingWith    = null;
         parent.OnHeadsetCollisionEnded(SetHeadsetCollisionEvent(collider, transform));
     }
 }