public void draw(SpriteBatch spriteBatch) { Rectangle bounds = new Rectangle((int)position.X, (int)position.Y, (int)size.X, (int)size.Y); if (Texture != null) spriteBatch.Draw(Texture, bounds, sourceBounds, Color.White); }