Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //****** Donations are greatly appreciated. ******
- //****** You can donate directly to Jesse through paypal at https://www.paypal.me/JEtzler ******
- var flickering : boolean = true;
- function Start() {
- flickerLight();
- }
- function Update () {
- }
- function flickerLight() {
- while(flickering) {
- yield WaitForSeconds(1);
- gameObject.light.intensity += 1;
- yield WaitForSeconds(1);
- gameObject.light.intensity = 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement