void OnHandHoverBegin(VRHand hand)
    {
        bool showHint = true;

        // "Catch" the throwable by holding down the interaction button instead of pressing it.
        // Only do this if the throwable is moving faster than the prescribed threshold speed,
        // and if it isn't attached to another hand
        if (!attached)
        {
            if (hand.GetStandardInteractionButton())
            {
                Rigidbody rb = GetComponent <Rigidbody>();
                if (rb.velocity.magnitude >= catchSpeedThreshold)
                {
                    hand.AttachObject(gameObject, attachmentFlags, attachmentPoint);
                    showHint = false;
                }
            }
        }

        if (showHint)
        {
            VRControllerButtonHints.Show(hand, Valve.VR.EVRButtonId.k_EButton_SteamVR_Trigger);
        }
    }
 void HandHoverUpdate(VRHand hand)
 {
     if (hand.GetStandardInteractionButtonDown())
     {
         VRInputModule.instance.Submit(gameObject);
         VRControllerButtonHints.Hide(hand);
     }
 }
 void HandHoverUpdate(VRHand hand)
 {
     //Trigger got pressed
     if (hand.GetStandardInteractionButtonDown())
     {
         hand.AttachObject(gameObject, attachmentFlags, attachmentPoint);
         VRControllerButtonHints.Hide(hand);
     }
 }
 public static void Hide(VRHand hand)
 {
     if (hand != null)
     {
         VRControllerButtonHints hints = hand.GetComponentInChildren <VRControllerButtonHints>();
         if (hints != null)
         {
             hints.Hide();
         }
     }
 }
 public static void Show(VRHand hand, params Valve.VR.EVRButtonId[] buttons)
 {
     if (hand != null)
     {
         VRControllerButtonHints hints = hand.GetComponentInChildren <VRControllerButtonHints>();
         if (hints != null)
         {
             hints.Show(buttons);
         }
     }
 }
 void OnHandHoverEnd(VRHand hand)
 {
     VRInputModule.instance.HoverEnd(gameObject);
     VRControllerButtonHints.Hide(hand);
     currentHand = null;
 }
 void OnHandHoverBegin(VRHand hand)
 {
     currentHand = hand;
     VRInputModule.instance.HoverBegin(gameObject);
     VRControllerButtonHints.Show(hand, Valve.VR.EVRButtonId.k_EButton_SteamVR_Trigger);
 }
 void OnHandHoverEnd(VRHand hand)
 {
     VRControllerButtonHints.Hide(hand);
 }