private void GetInventoryInput() { if (Input.GetKeyDown(KeyCode.I)) { OnToggleInventory?.Invoke(); } }
// Toggle visibility of inventory private void ToggleInventory() { inventoryVisible = !inventoryVisible; OnToggleInventory?.Invoke(inventoryVisible); }