/// <summary>
 /// Draws the sprite. Override to add functionality. Call last.
 /// </summary>
 /// <param name="spriteBatch">The sprite batch to draw with.</param>
 public virtual void Draw()
 {
     if (IsVisible)
     {
         BlockSprite.Draw(game.GameSpriteBatch);
     }
 }
示例#2
0
 public override void Draw(SpriteBatch spriteBatch, Vector2 spriteLocation, Color color)
 {
     BlockSprite.Draw(spriteBatch, spriteLocation, color);
 }
示例#3
0
 public virtual void Draw(SpriteBatch spriteBatch, Vector2 location)
 {
     BlockSprite.Draw(spriteBatch, location);
 }
示例#4
0
 /// <summary>
 /// Draws the sprite.
 /// </summary>
 public virtual void Draw()
 {
     BlockSprite.Draw(game.GameSpriteBatch);
 }