public void Draw(SpriteBatch spriteBatch) { if (textObject == null) { Rectangle rect = Rect; rect.Offset(offset); spriteBatch.Draw(SimpleUtils.WhiteRect, rect, color); } else { textObject.DrawOnCenter(spriteBatch); } }