예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Scene"/> class.
 /// </summary>
 /// <param name="gameStateManager">Game state manager the game state belongs to</param>
 public Scene(GameBoxStateManager gameStateManager)
     : base(gameStateManager)
 {
     StateManager = gameStateManager;
     Screen       = new Screen();
     _service     = (IGuiService)gameStateManager.GameServices.GetService(typeof(IGuiService));
 }
예제 #2
0
파일: EndGameScene.cs 프로젝트: minskowl/MY
 /// <summary>
 /// Initializes a new instance of the <see cref="EndGameScene"/> class.
 /// </summary>
 /// <param name="gameStateManager">Game state manager the game state belongs to</param>
 public EndGameScene(GameBoxStateManager gameStateManager)
     : base(gameStateManager)
 {
     _labelControl = new LabelControl("You win!!!")
     {
         Bounds = { Location = new UniVector(200, 200) }
     };
     this.Screen.Desktop.Children.Add(_labelControl);
 }