Links

Interactor

✔

Overview

This component stores the Index and GameObject of an Interactable and invoke events that can be used create Reactions according to each interactable value. It also execute the Interaction logic on the Interactable.

Parameters

ID

Index of the Interactor. This parameter is received by the Interactable when Interact() is called to check who was the Interactor that activated the logic

Interaction Area

Reference for the Collider that it will be used for finding interactables [On Trigger Enter]

Events

On Interact with (GameObject)

Invoked when the Interact() Method is called. Send as parameter the Interactable GameObject

On Interact with (Int)

Invoked when the Interact() Method is called. Send as parameter the Interactable Index

On Focused (GameObject)

Invoked when an Interactable enters the Interaction Area

​