예제 #1
0
 private void CollectAndEatFood(ICollectable collectable)
 {
     collectable.Disable();
     ItemInHand = collectable;
     Creature.Animator.SetInteger("CollectType", 0);
     Creature.Animator.SetTrigger("Collect");
 }
예제 #2
0
    private void CollectAndEatFood(ICollectable collectable)
    {
        collectable.Disable();

        if (movingTarget)
        {
            return;
        }

        ItemInHand = collectable;
        Creature.Animator.SetInteger("CollectType", 1);
        Creature.Animator.SetTrigger("Collect");

        MoveTargetItem(collectable);
    }
예제 #3
0
 public void OnCollect(ICollectable obj)
 {
     obj.Disable();
     obj.transform.SetParent(Creature.rightHandTransform);
 }