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