protected virtual void OnTriggerExit(Collider currentCollider) { VRTK4_PlayerObject colliderCheck = currentCollider.GetComponentInParent <VRTK4_PlayerObject>(); VRTK4_UIPointer pointerCheck = colliderCheck == null ? null : colliderCheck.GetPointer(); if (pointerCheck != null) { pointerCheck.collisionClick = false; } }
protected virtual void OnTriggerEnter(Collider currentCollider) { VRTK4_PlayerObject colliderCheck = currentCollider.GetComponentInParent <VRTK4_PlayerObject>(); VRTK4_UIPointer pointerCheck = colliderCheck == null ? null : colliderCheck.GetPointer(); if (pointerCheck != null && colliderCheck != null && colliderCheck.objectType == VRTK4_PlayerObject.ObjectTypes.Pointer) { pointerCheck.collisionClick = clickOnPointerCollision; } }
protected virtual void OnTriggerExit(Collider collider) { VRTK4_PlayerObject colliderCheck = collider.GetComponentInParent <VRTK4_PlayerObject>(); VRTK4_UIPointer pointerCheck = colliderCheck == null? null: colliderCheck.GetPointer(); if (pointerCheck != null && pointerCheck.autoActivatingCanvas == gameObject && colliderCheck.objectType == VRTK4_PlayerObject.ObjectTypes.Pointer) { pointerCheck.autoActivatingCanvas = null; } }