コード例 #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();
		}