private void Eat(IEdible food)
 {
     Console.WriteLine("Eating {0}", food.GetType().Name);
     hunger -= food.NutritionValue;
 }
Exemple #2
0
 private void Eat(IEdible food)
 {
     BearIs(string.Format("eating {0}", food.GetType().Name));
     hunger -= food.NutritionValue;
 }