A simple automatic door that opens when you enter its trigger zone and closes when you leave it.
The FSM is functionally the same as Door FSM in the NoExit sample.
Exercises
- Move/Scale the Box Collider on the door to change the trigger zone.
- Copy/Paste the door to see how it retains its behavior.
- Make an Automatic Door prefab and drag into the scene. Now any changes made to the prefab FSM automatically apply to any prefab instances in the scene.