🔌Interactable
✔
Last updated
✔
Last updated
This component is often used to create interaction with the animals, even though it has no dependencies with the Animal Controller, it can be used as a stand-alone component, along with the Interactor script.
The script for the Interactable is MInteract.
Index of the Interactable. This value is used by the Interactor as an Event to identify with which interactable the Interactor is interacting.
Which Interactors can interact with this Interactable, by default is set to -1 which means this interactable can interact will all interactors.
If the Interactor has this interactable focus, it will apply the Interaction logic automatically, without having to call the Interact() method.
Interact once. After an interaction is executed with this interactable, this component will be disabled, so it no longer can be used.
Delay time to execute/call the interaction logic.
The time needed to elapse between interactions. This only works when Single Interaction is set to false
Invoked when the Interactor executes an interaction. The parameter is the Interactor Gameobject
Invoked when the Interactor executes an interaction. The parameter is the Interactor Index. this is called right after the Event OnInteractWithGo(GameObject).
Invoked when the Interactor has this Interactable as the focused Interactable.
Invoked when the Interactor has lost this Interactable as the focused Interactable.