Пример #1
0
        public void Draw(GameTime gt)
        {
            if (showTime > 0)
            {
                if (showTime % 400 > 200)
                {
                    Game.SpriteBatch.Begin();
                    numberRenderer.DrawNumber(Value, Position);
                    Game.SpriteBatch.End();
                }

                showTime -= gt.ElapsedGameTime.Milliseconds;
            }
        }
Пример #2
0
 public void Draw(GameTime gt)
 {
     Game.SpriteBatch.Begin();
     numberRenderer.DrawNumber(Value, Position);
     Game.SpriteBatch.End();
 }