示例#1
0
        public void Draw(SpriteBatch spriteBatch)
        {
            font.DrawString(score.ToString(), new Vector2(2, 2), spriteBatch, Color.White);

            if (GameManager.Self.IsGameOver)
            {
                font.DrawStringCentered(gameOverString, new Vector2(160, 120), spriteBatch, Color.Red);
            }

            font.DrawString(health.ToString(), new Vector2(2, 224), spriteBatch, Color.White);
        }