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