Where are the Inputs?

Where is the input reference?

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

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

  • SafeController script has an input for opening and closing the keypads

  • SafeTrigger script for closing the keypads from trigger events

Changing the Inputs

SafeController

private void Update()
{
    if (!canClose && isInteracting && Input.GetKeyDown(closeKey))
    {
        CloseSafeUI();
    }
}

SafeInteractor

if (safe != null)
{
    if (Input.GetKeyDown(interactKey))
    {
         safe.ShowSafeLock();
    }
}

SafeTrigger

void ShowSafeInput()
{
    if (canUse && Input.GetKeyDown(triggerInteractKey))
    {
        SafeUIManager.instance.SetInteractPrompt(false);
        _safeItemController.ShowSafeLock();
    }
}

Last updated