Exemplo n.º 1
0
 private void CollectAndEatFood(ICollectable collectable)
 {
     collectable.Disable();
     ItemInHand = collectable;
     Creature.Animator.SetInteger("CollectType", 0);
     Creature.Animator.SetTrigger("Collect");
 }
Exemplo n.º 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);
    }
Exemplo n.º 3
0
 public void OnCollect(ICollectable obj)
 {
     obj.Disable();
     obj.transform.SetParent(Creature.rightHandTransform);
 }