Пример #1
0
 public HarvestAction(Plant plant) : base(true)
 {
     this.plant = plant;
 }
Пример #2
0
 public abstract void Do(Plant plant);
Пример #3
0
 public override void Do(Plant plant)
 {
     plant.Grow();
     IsActive = false;
 }
Пример #4
0
 private void RemovePlant(Plant plant)
 {
     Plants.Remove(plant);
     OnRemoveGameObject(plant);
 }