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

  • Edit the input keys int he PLInputManager script

Changing the Input:

PadlockController:

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

PadlockTrigger:

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

PadlockInteractor:

if (padlockItem != null)
{
    if (Input.GetKeyDown(PLInputManager.instance.interactKey))
    {
         //Logic
    }
}

Last updated