I have a really nice light bulb with a switch somewhere in the scene that turns the scene into a dark room (using a black texture with alpha). All works just fine. However, I want to implement the following behaviour - if the player turns on and off the light quickly for several times, the light bulb should explode. I use a simple toggle script to control what happens when the light is on or off.
Any ideas?! Thanks!
↧