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)); } }
public void EndCollision(Collider collider) { if (!collider || !collider.GetComponent <VRTK_PlayerObject>()) { parent.headsetColliding = false; parent.collidingWith = null; parent.OnHeadsetCollisionEnded(SetHeadsetCollisionEvent(collider, transform)); } }