From bf1a63828ea6ecafc2c939b187ab4484b6d3d39c Mon Sep 17 00:00:00 2001 From: Jakub Sztuba Date: Tue, 14 Jun 2022 22:06:01 +0200 Subject: [PATCH] Open Inventory panel on I press --- Assets/Scripts/Chest/ChestController.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Assets/Scripts/Chest/ChestController.cs b/Assets/Scripts/Chest/ChestController.cs index 0f45ee5f..1467808b 100644 --- a/Assets/Scripts/Chest/ChestController.cs +++ b/Assets/Scripts/Chest/ChestController.cs @@ -33,6 +33,15 @@ public class ChestController : BaseWarehouseController EquipmentManager.Instance.OpenPanel(); } } + + if (!InventoryManager.Instance.isOpen) + { + if (Input.GetKeyDown(KeyCode.I)) + { + InventoryManager.Instance.OpenPanel(); + } + } + } void OnTriggerExit2D(Collider2D collision)