Esempio n. 1
0
        public void OnPointerTarget(PhysicsPointer source)
        {
            Visible = true;

            // If we're opening or closing, don't set the color value
            //    AnimatorStateInfo stateInfo = animator.GetCurrentAnimatorStateInfo(0);
            //    if (stateInfo.IsName("Show") || stateInfo.IsName("Hide"))
            //    {
            //        return;
            //    }

            Vector3 localHitPoint = selectorTransform.parent.InverseTransformPoint(source.TargetPoint);

            selectorPosition = new Vector2(localHitPoint.x, localHitPoint.z);
        }
Esempio n. 2
0
 public void OnPointerTarget(PhysicsPointer source)
 {
 }
Esempio n. 3
0
 public void OnPointerTarget(PhysicsPointer source)
 {
     // If we're opening or closing, don't set the color value
 }
Esempio n. 4
0
 private void Awake()
 {
     m_Pose  = GetComponent <SteamVR_Behaviour_Pose>();
     m_Joint = GetComponent <FixedJoint>();
     pointer = GetComponentInChildren <PhysicsPointer>();
 }