예제 #1
0
파일: Game.cs 프로젝트: whztt07/DeltaEngine
		public Game(Window window)
		{
			menu = new MainMenu();
			//ncrunch: no coverage start
			menu.InitGame += () =>
			{
				menu.Hide();
				StartGame();
			}; //ncrunch: no coverage end
			menu.QuitGame += window.CloseAfterFrame;
			window.Title = "Blocks";
		}
예제 #2
0
파일: Game.cs 프로젝트: remy22/DeltaEngine
 public Game(Window window)
 {
     content = new FruitBlocksContent();
     menu = new MainMenu(content);
     menu.InitGame += () =>
     {
         //ncrunch: no coverage start
         menu.Hide();
         StartGame();
     }; //ncrunch: no coverage end
     menu.QuitGame += window.CloseAfterFrame;
     window.Title = "Fruit Blocks";
     menu.SwitchContent += SwitchContent;
 }