public void Draw(SpriteBatch spriteBatch) { spriteBatch.Begin(); spriteBatch.Draw(game.rect, new Rectangle(new Point((int)(Position.X - Size.X / 2f), (int)(Position.Y - Size.Y / 2f)), Size), Color.Black); spriteBatch.End(); headerInfo.Draw(spriteBatch); inventoryInfo.Draw(spriteBatch); }
public override void Draw(SpriteBatch spriteBatch) { base.Draw(spriteBatch); Back.Draw(spriteBatch); InventoryInfo.Draw(spriteBatch); CraftingInfo.Draw(spriteBatch); SceneManager.mapScene.ThePlayer.DrawInventory(spriteBatch); }