https://github.com/duckboss/leversystem-unity
A simple lever system for Unity Games.
https://github.com/duckboss/leversystem-unity
Last synced: about 1 year ago
JSON representation
A simple lever system for Unity Games.
- Host: GitHub
- URL: https://github.com/duckboss/leversystem-unity
- Owner: DuckBoss
- License: mit
- Created: 2017-12-27T23:51:28.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-28T00:03:25.000Z (over 8 years ago)
- Last Synced: 2025-02-13T22:52:15.828Z (over 1 year ago)
- Language: C#
- Size: 73.2 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LeverSystem-Unity
A simple lever system for Unity Games.
[](https://github.com/DuckBoss/LeverSystem-Unity/releases/latest)
[](https://github.com/DuckBoss/LeverSystem-Unity/blob/master/LICENSE)
## Usage
1) Drag and drop the 'Lever' Prefab into your scene.
2) Set the 'Player Tag' setting in the lever script inspector. (Otherwise it won't detect the player)
## Easily Integrating In Your Games
- 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.