예제 #1
0
        private void OnTriggerExit(Collider other)
        {
            PoseManager.OnHandObjectCollisionEnd(this, other.gameObject);

            PoseManager.GetJointFromGameobjectName(other.name, out OvrAvatar.HandType hand, out PoseManager.HandJoint joint);
            if (joint != PoseManager.HandJoint.IndexTip)
            {
                return;
            }

            CurJointIntersectionCount--;

            if (CurJointIntersectionCount == 0)
            {
                foreach (var elem in ApproachUI)
                {
                    elem.enabled = false;
                }

                if (isSelected)
                {
                    foreach (var elem in SelectUI)
                    {
                        elem.enabled = true;
                    }
                }
            }
        }
예제 #2
0
 private void OnTriggerExit(Collider other)
 {
     PoseManager.GetJointFromGameobjectName(other.name, out OvrAvatar.HandType hand, out PoseManager.HandJoint joint);
     if (hand == OvrAvatar.HandType.Right && joint == PoseManager.HandJoint.IndexTip)
     {
         activeIntersections = Mathf.Max(activeIntersections - 1, 0);
         if (activeIntersections == 0)
         {
             emitter.EnableEmissionConeGestures = false;
             //Debug.Log("Disabling interactions with emission cone!");
         }
     }
     PoseManager.OnHandObjectCollisionEnd(animScript, other.gameObject);
 }