public void SetFoodIgnored(LivingBeing lb) { FoodIgnored = lb; if (lb != null && this != null && StopIgnoringFood() != null) { if (_foodIgnoreCoroutine != null && _foodCoroutineRunning) { StopCoroutine(_foodIgnoreCoroutine); } _foodIgnoreCoroutine = StartCoroutine(StopIgnoringFood()); } }
public void SetTargetFood(LivingBeing target) { TargetFood = target; }