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