private void LoadContent() { _whitePixelTexture = _contentManager.Load <Texture2D>("Images/WhitePixel"); _backgroundTexture = _contentManager.Load <Texture2D>("Images/Miscelaneous/Pause_Background"); _loaderTexture = _contentManager.Load <Texture2D>("Images/Miscelaneous/Loader"); _gameTitleFontBig = _contentManager.Load <SpriteFont>("Fonts/GameTitleBig"); _gameFontMedium = _contentManager.Load <SpriteFont>("Fonts/GameFontMedium"); _gameFontSmall = _contentManager.Load <SpriteFont>("Fonts/GameFontSmall"); _playerScoreContainer.LoadContent(_contentManager); }
public void Update(GameTime gameTime) { _playerScoreContainer.Update(gameTime); if (_globalScoreIsLoaded && _globalScoreContainer != null) { _globalScoreContainer.Update(gameTime); } if (_globalScoreIsLoaded && _globalScoreContainer == null) { _globalScoreContainer = new ScoreContainer(_globalScores, CommonScreenTextConstants.Score.GlobalScores, false, new Rectangle(0, 0, _gameScreenManager.GameScreenWidth, _gameScreenManager.GameScreenHeight)); _globalScoreContainer.LoadContent(_contentManager); _globalScoreContainer.Init(); } }