Input Locations

Where is the input reference?

There are TWO input reference in this package and it is located below:

  • PadlockInteractor script has an input for interacting with objects with the raycast

  • PadlockTrigger script

  • PadlockController script to close the opened item

Changing the Input:

PadlockController:

void Update()
{
    if (isShowing && Input.GetKeyDown(closeKey))
    {
         DisablePadlock();
    }
}

PadlockTrigger:

void ShowPadlockInput()
{
    if (canUse && Input.GetKeyDown(triggerInteractKey))
    {
        padlockController.ShowPadlock();
    }
}

PadlockInteractor:

Last updated

Was this helpful?