What Inputs Are Used?
Where is the input reference?
Door Interactor
//Only allow interaction if we have a valid target
if (currentInteractable != null)
{
//Listen for the interaction key press
if (Input.GetKeyDown(interactionKey))
{
//Trigger the current interactable’s interaction logic
currentInteractable.Interact();
}
}Door Inventory
Last updated