private void CollectAndEatFood(ICollectable collectable) { collectable.Disable(); ItemInHand = collectable; Creature.Animator.SetInteger("CollectType", 0); Creature.Animator.SetTrigger("Collect"); }
private void CollectAndEatFood(ICollectable collectable) { collectable.Disable(); if (movingTarget) { return; } ItemInHand = collectable; Creature.Animator.SetInteger("CollectType", 1); Creature.Animator.SetTrigger("Collect"); MoveTargetItem(collectable); }
public void OnCollect(ICollectable obj) { obj.Disable(); obj.transform.SetParent(Creature.rightHandTransform); }