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); }
public void OnPointerTarget(PhysicsPointer source) { }
public void OnPointerTarget(PhysicsPointer source) { // If we're opening or closing, don't set the color value }
private void Awake() { m_Pose = GetComponent <SteamVR_Behaviour_Pose>(); m_Joint = GetComponent <FixedJoint>(); pointer = GetComponentInChildren <PhysicsPointer>(); }