Where are inputs located?
ValveInteractor
if (raycastedObj != null)
{
raycastedObj.ObjectInteract(true, interactKey);
}ValveItem
NOTE: This finds the interaction key from the Valve Interactor script so it doesn't reference a key directly at this point
void ItemUseInput()
{
if (canInteract)
{
if (Input.GetKey(interactionKey))
{
ItemActionOn();
}
else
{
ItemActionOff();
}
}
}ValveInventory
private void Update()
{
if (Input.GetKeyDown(openInventoryKey))
{
ValveUIManager.instance.OpenInventory();
}
}Last updated
Was this helpful?