Interactable
✔
Last updated
Was this helpful?
✔
Last updated
Was this helpful?
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.
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
Index of the Interactable. This value is used by the as an Event to identify with which interactable the is interacting.
Which can interact with this Interactable, by default is set to -1 which means this interactable can interact will all interactors.
If the has this interactable focus, it will apply the Interaction logic automatically, without having to call the Interact() method.
Invoked when the Interactor executes an interaction. The parameter is the Gameobject
Invoked when the Interactor executes an interaction. The parameter is the Index. this is called right after the Event OnInteractWithGo(GameObject).
Invoked when the has this Interactable as the focused Interactable.
Invoked when the has lost this Interactable as the focused Interactable.