public void ToggleInventory() { InventoryWindow.Enabled = !InventoryWindow.Enabled; if (InventoryWindow.Enabled) { InventoryWindow.SetInventoryItems(); } }