diff --git a/Assets/Scripts/UI/InventoryUI.cs b/Assets/Scripts/UI/InventoryUI.cs index 07c18a8..9653c2b 100644 --- a/Assets/Scripts/UI/InventoryUI.cs +++ b/Assets/Scripts/UI/InventoryUI.cs @@ -22,11 +22,12 @@ public class InventoryUI : GuiPanel CreateSlots(); } UpdateSlots(); + GuiManager.Instance.ClosePanel("Hotbar"); } public override void OnClose() { - + GuiManager.Instance.OpenPanel("Hotbar"); } private void CreateSlots() {