public void Draw(ExtendedSpriteBatch spriteBatch) { if (Active) { spriteBatch.DrawRectangle(Rect, Color.Black); spriteBatch.FillRectangle(Rect, PaintColor); } }
public void Draw(ExtendedSpriteBatch spriteBatch) { spriteBatch.DrawRectangle(new Rectangle((int)Position.X-Width/2, (int)Position.Y-Height/2, Width, Height), Color.Black); spriteBatch.FillRectangle(new Rectangle((int)_maxPosition.X, (int) _maxPosition.Y, 2, 2), Color.Red ); }