private void Eat() { if (target != null) { if (isChaseChicken) { Chicken chicken = target.GetComponentInChildren <Chicken>(); chicken.Dead(); m_wolfController.KillChicken(chicken.GetInstanceID()); target = null; isHaveTarget = false; } else { Player player = target.GetComponentInChildren <Player>(); player.Stun(); target = null; isHaveChicken = true; } } }