An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# LeverSystem-Unity
A simple lever system for Unity Games.

[![GitHub release](https://img.shields.io/badge/Build-1.0-brightgreen.svg)](https://github.com/DuckBoss/LeverSystem-Unity/releases/latest)
[![Packagist](https://img.shields.io/badge/License-MIT-blue.svg)](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.