void Update() { if (!performingAction) { if (Input.GetButtonDown("Action") && focus != null) { focus.GetComponent <Interactable>().Interact(); inventory.CloseInventory(); } if (Input.GetKeyDown(KeyCode.I) && canUseInventory) { inventory.InventoryTrigger(); } if (actionItem != null) { if (Input.GetButtonDown("UseItem")) { actionItem.Action(); } if (Input.GetKeyDown(KeyCode.R)) { //EquipmentManager.instance.Remove((int)actionItem.equipmentSlot); inventory.CloseInventory(); actionItem = null; } } //if (actionItem != null) } //if (!performingAction) }