コード例 #1
0
        virtual protected void PICKUP_DROPReleased(VRInteractor hand)
        {
            if (hand.heldItem == null || toggleToPickup || hand.vrInput.ActionPressed("PICKUP") || hand.vrInput.ActionPressed("ACTION") || hand.vrInput.ActionPressed("PICKUP_DROP"))
            {
                return;
            }

            hand.Drop();
        }
コード例 #2
0
        virtual protected void DROP(VRInteractor hand)
        {
            if (hand.heldItem == null)
            {
                return;
            }

            hand.Drop();
        }
コード例 #3
0
 virtual protected void PICKUP_DROP(VRInteractor hand)
 {
     if (hand.heldItem == null)
     {
         hand.TryPickup();
     }
     else if (toggleToPickup)
     {
         hand.Drop();
     }
 }