-
Notifications
You must be signed in to change notification settings - Fork 23
Scripts.Flashlight
Wesley Haws edited this page Jan 1, 2017
·
2 revisions
##Scripts - Flashlight
###What does this do?
Turns a light source on and off based on player input. Also plays sounds when player input is pressed.
###Who/What is this for?
The player object only.
###Setup
Example Setup:
Parameter | Type | Description |
---|---|---|
Override Audio Source | AudioSource | Audio source to play sounds from. If not provided the first one it finds. |
Flashlight On Sound | AudioClip | AudioClip to play when light source turns on. |
Flashlight Off Sound | AudioClip | AudioClip to play when light source turns off. |
The following is a list of github repositories that made all of this possible:
delta patches: https://github.com/OctopusDeploy/Octodiff
.net 4 implemented in Monodevelop: https://github.com/mono/mono
Tuples In Unity: https://gist.github.com/michaelbartnett/5652076
Octodiff: https://github.com/OctopusDeploy/Octodiff
Input Manager: https://github.com/daemon3000/InputManager