/// <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)); }
/// <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); }