Пример #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
 public void StartGame()
 {
     mainMenu.Hide();
     Show();
     controls  = new Controls(this);
     score     = 0;
     GameState = GameState.Playing;
     InteractionLogic.BeginGame();
     SetUpEvents();
     controls.SetControlsToState(GameState);
     HudInterface = new HudInterface();
 }