Esempio n. 1
0
 public void Start(ConsoleKey key, World world, UI ui)
 {
     if (key == ConsoleKey.Enter && !started)
     {
         Console.Clear();
         world.Start();
         started = true;
         ui.Instruction();
     }
 }
Esempio n. 2
0
 public void PlayAgain(ConsoleKey key, World world, Platform platform, Player player)
 {
     if (key == ConsoleKey.Enter)
     {
         Console.Clear();
         world.Start();
         platform.emptyPlatform();
         player.score = 0;
         ifLose       = false;
         alreadyLose  = false;
     }
 }