From 8565630bd2de9b785a16efa18af2a581abbf0950 Mon Sep 17 00:00:00 2001 From: Janis Meister Date: Thu, 23 Feb 2023 12:52:54 +0100 Subject: [PATCH] Toggle Hotbar on inv open --- Assets/Scripts/UI/InventoryUI.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() {