Open Inventory panel on I press
This commit is contained in:
parent
0a07120b68
commit
bf1a63828e
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user