Beispiel #1
0
 public override void ComfortChild(Baby baby)
 {
     if (Patience > 0)
     {
         Console.WriteLine($"{Name} prende in braccio {baby.Name} e lo culla");
         Patience--;
     }
     else
     {
         Console.WriteLine($"{Name} gives Ben to Luke and runs away");
         baby.RemoveComforter(this);
     }
 }
Beispiel #2
0
 public override void ComfortChild(Baby baby)
 {
     Console.WriteLine($"{Name} runs off");
     baby.RemoveComforter(this);
 }