Example #1
0
        internal Baby MakeBaby(Dad dad, string childName)
        {
            Child                = new Baby(childName);
            dad.Child            = Child;
            Child.StartedCrying += ComfortChild;
            Child.StartedCrying += dad.ComfortChild;

            Console.ForegroundColor = ConsoleColor.Magenta;
            Console.WriteLine($"{Name} ha fatto un figlio con {dad.Name} che si chiama {Child.Name}");
            Console.ForegroundColor = ConsoleColor.Gray;
            return(Child);
        }
Example #2
0
 public void Comfort(Dad dad)
 {
     Console.ForegroundColor = TextColor;
     Console.WriteLine($"{Name} da una leggera scossa di conforto a {dad.Name}");
     Console.ForegroundColor = ConsoleColor.Gray;
 }