예제 #1
0
    public void Drop()
    {
        if (grabber.canDrop)
        {
            if (Input.GetButtonDown(playerData.actionButon))
            {
                truckToCharge.AddObjeetToTruck(pickUpedObject);

                score += pickUpedObject.score;
                state  = PlayerStates.NOT_HOLDING_ITEM;
                animator.runtimeAnimatorController = controllerWithOutBox;

                pickUpedObject = null;
            }
        }
    }