Exemplo n.º 1
0
        public void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(_backgroundTexture, _backgroundRectangle, Color.White);
            _playerScoreContainer.Draw(gameTime, spriteBatch);
            if (_globalScoreIsLoaded)
            {
                _globalScoreContainer.Draw(gameTime, spriteBatch);
            }
            else
            {
                DrawLoader(gameTime, spriteBatch);
            }

            spriteBatch.DrawString(
                _gameFontSmall,
                CommonScreenTextConstants.BackNavigationText,
                CommonScreenTextConstants.BackNavigationText.ToTopLeftWithMargin(_backgroundRectangle, _gameFontSmall),
                Color.White);
        }