Where are Inputs?

Where is the input reference?

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

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

  • FBUIManager scirpt has an input for opening and closing the inventory

  • Edit the input keys int he FBInputManager script

Changing the Input:

FBInputManager:

FBUIManager:

private void Update()
{
    if (Input.GetKeyDown(FBInputManager.instance.inventoryKey))
    {
        OpenInventory();
    }
}

FBInteractor:

if (raycastedObj != null)
{
    if (Input.GetKeyDown(FBInputManager.instance.interactKey))
    {
         raycastedObj.ObjectInteract();
    }
}

Last updated