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

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

Changing the Input:

FBInventoryManager:

private void Update()
{
    // Detect inventory toggle input
    if (Input.GetKeyDown(inventoryKey))                        
    {
        // Toggle inventory UI open/closed
        FBUIManager.instance.OpenInventory();                  
    }
}

FBInteractor:

// If we currently have an interactable object
if (raycastedObj != null)                                     
    {
        // When the interact key is pressed
        if (Input.GetKeyDown(interactKey))                        
        {
            // Call the object's interaction logic
            raycastedObj.ObjectInteract();                        
        }
}

Last updated