예제 #1
0
 private void SetUpEvents()
 {
     InteractionLogic.GameOver      += GameOver;
     InteractionLogic.IncreaseScore += increase =>
     {
         score += increase;
         HudInterface.SetScoreText(score);
     };
 }
예제 #2
0
 public void StartGame()
 {
     mainMenu.Hide();
     Show();
     controls  = new Controls(this);
     score     = 0;
     GameState = GameState.Playing;
     InteractionLogic.BeginGame();
     SetUpEvents();
     controls.SetControlsToState(GameState);
     HudInterface = new HudInterface();
 }
예제 #3
0
파일: Game.cs 프로젝트: whztt07/DeltaEngine
		public void StartGame()
		{
			mainMenu.Hide();
			Show();
			controls = new Controls(this);
			score = 0;
			GameState = GameState.Playing;
			InteractionLogic.BeginGame();
			SetUpEvents();
			controls.SetControlsToState(GameState);
			HudInterface = new HudInterface();
		}