Ejemplo n.º 1
0
 private void HandHoverUpdate(Hand hand)
 {
     if (isGrabbable)
     {
         if (Valve.VR.SteamVR_Input.GetStateDown("Shoot", hand.handType))
         {
             if (!hand.ObjectIsAttached(this.gameObject))
             {
                 //grabbableObject.DoubleHanded();
                 hand.HoverLock(interactable);
                 hand.AttachObject(this.gameObject, GrabTypes.Scripted, attachmentFlags);
                 lockedHand = hand;
                 grabbableObject.DoubleHanded();
             }
             else
             {
                 Detach(hand);
             }
         }
     }
 }