Esempio n. 1
0
 private void ChargeThrow(string throwButton)
 {
     if (Input.GetButtonUp(throwButton) &&
         holdButtonTime >= 0 &&
         pickup.HasPickupable())
     {
         var pickupable = pickup.GetPickupable();
         if (holdButtonTime >= tossThreshold)
         {
             Toss(pickupable);
         }
         else
         {
             Drop(pickupable);
         }
         holdButtonTime = -1.0f;
     }
 }