public void SetSprite(string textureKey, Rectangle textRect) { sprite = TextureManager.GetTexture(textureKey); sourceRect = textRect; origin = sprite.Bounds.Center.ToVector2(); }