Open Inventory panel on I press

This commit is contained in:
Jakub Sztuba 2022-06-14 22:06:01 +02:00
parent 0a07120b68
commit bf1a63828e

View File

@ -33,6 +33,15 @@ public class ChestController : BaseWarehouseController
EquipmentManager.Instance.OpenPanel(); EquipmentManager.Instance.OpenPanel();
} }
} }
if (!InventoryManager.Instance.isOpen)
{
if (Input.GetKeyDown(KeyCode.I))
{
InventoryManager.Instance.OpenPanel();
}
}
} }
void OnTriggerExit2D(Collider2D collision) void OnTriggerExit2D(Collider2D collision)