/// <summary> /// Load your graphics content. /// </summary> protected override void LoadContent() { font = new FontManager(graphics.GraphicsDevice); screen = new ScreenManager(this, font, game); font.LoadContent(Content); game.LoadContent(graphics.GraphicsDevice, Content); screen.LoadContent(graphics.GraphicsDevice, Content); }
// constructor public ScreenLevel(ScreenManager manager, GameManager game) { screenManager = manager; gameManager = game; }
Texture2D textureSelectCancel; // select and cancel texture #endregion Fields #region Constructors // constructor public ScreenPlayer(ScreenManager manager, GameManager game) { screenManager = manager; gameManager = game; }
Texture2D texturePlayerWin; // texture with winning player number #endregion Fields #region Constructors // constructor public ScreenEnd(ScreenManager manager, GameManager game) { screenManager = manager; gameManager = game; }
// constructor public ScreenIntro(ScreenManager manager, GameManager game) { screenManager = manager; gameManager = game; }
/// <summary> /// Unload your graphics content. /// </summary> protected override void UnloadContent() { screen.UnloadContent(); game.UnloadContent(); font.UnloadContent(); screen = null; font = null; }