private void ProcessInventoryInteraction() { if (Input.GetButtonDown("Cancel")) { inventory.DisplayInventory(); } if (inventory.currentlySelectedSlot) { if (Input.GetButtonDown("Submit")) { inventory.CallItemInteractBox(true); } } }