public override void OnDraw(SpriteBatch sprite, GameTime gameTime) { if (SpriteSize == Vector2.Zero) { sprite.Draw(Texture, AbsolutePosition, null, Color, 0, Vector2.Zero, Scale, SpriteEffects.None, 0); return; } sprite.Draw(Texture, AbsolutePosition, new Rectangle(SpriteOrigin.ToPoint(), SpriteSize.ToPoint()), Color, 0, Vector2.Zero, Scale, SpriteEffects.None, 0); }