示例#1
0
文件: Menu.cs 项目: Gago55/tetris
 public void Start(ConsoleKey key, World world, UI ui)
 {
     if (key == ConsoleKey.Enter && !started)
     {
         Console.Clear();
         world.Start();
         started = true;
         ui.Instruction();
     }
 }
示例#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;
     }
 }