public virtual void ExtractHarvest(IHarvest harvest) { harvest.Health -= ExtractDamage; if (harvest.Health <= 0) { Game.Harvests.Remove(harvest); ExtractedHarvests.Add(HarvestItemFactory.CreateHarvestItem(harvest)); } }
private void Awake() { _bio = GetComponent <Biology>(); _harvest = GetComponent <IHarvest>(); _attack = GetComponent <IAttack>(); _memory = GetComponent <CreatureMemory>(); _nav = GetComponent <NPCNavigation>(); _reach = GetComponent <IHaveReach>(); _drink = GetComponent <CreatureDrink>(); }