Beispiel #1
0
 public override void Hungry()
 {
     IAmHungry?
     .Invoke(this,
             new HungryEventArgs
     {
         FoodAmount  = 10,
         IsMeatEater = false
     });
 }
Beispiel #2
0
 public void OnHungry(int count)
 {
     IAmHungry?.Invoke(this, new HungryEventArgs {
         IsMeat = false, CountFood = count
     });
 }