Where The Inputs Are Located?
KCInteractor script:
This is the input that will go on each object and allow for interaction
void PickupInput()
{
if (canInteract)
{
if (Input.GetKeyDown(KCInputManager.instance.interactKey))
{
ItemAction();
}
}
}
KCInventory script:
This is the input for opening and closing the inventory display
private void Update()
{
if (Input.GetKeyDown(KCInputManager.instance.openInventoryKey))
{
OpenInventory();
}
}
Last updated