Trigger allows you to detect Trigger Collisions of an object with the Player, and perform behaviours in response.
Attach this component on a GameObject and ensure to assign a Collider and enable isTrigger.
isTrigger.
You can subscribe any behaviour you want to each of the provided events from the Inspector:
events:
onEnter
onStay
onExit
Last updated 1 year ago