Where are inputs located?

References can be found in the:

  • InputManager

  • CPInteractor

  • CPUIManager

CPInteractor script

void PickupInput()
{
    if (canInteract)
    {
        if (Input.GetKeyDown(CPInputManager.instance.interactKey))
        {
            collectableItem.ItemAction();
        }
    }
}

CPUIManager script

private void Update()
{
    if (disableInventoryOpen)
        return;

    if (Input.GetKeyDown(CPInputManager.instance.openInventoryKey))
    {
        isOpen = !isOpen;
        ToggleInventory(isOpen);
    }
    else if (isOpen && Input.GetKeyDown(CPInputManager.instance.closeInventoryKey))
    {
        isOpen = false;
        ToggleInventory(isOpen);
    }
}

Last updated