A simple lever system for Unity Games.
- Drag and drop the 'Lever' Prefab into your scene.
- Set the 'Player Tag' setting in the lever script inspector. (Otherwise it won't detect the player)
- Use the 'Lever' scripts 'GetLeverState()' method to activate events in your game based on the lever state.
- Use the 'Lever' scripts 'ToggleLever()' method to remotely toggle the state of the lever based on events that occur within your game.