コード例 #1
0
        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;
            }
        }
コード例 #2
0
        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;
            }
        }
コード例 #3
0
        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;
            }
        }