Triggering Playback on Proximity
- Start by creating a playermodel with
- The "Player" tag
- An Rigidbody
- An Collider
- Create a object you want to interact with
- Give this object an
- Collider with the "Is Trigger" mark checked
- Make the collider bigger to make a zone
- Add the lightonoff.cs script onto the object
- Create a canvas with a text field
- Insert the text you want to display when getting into the zone