Hi guys I made this very simple script of light flicker I hope it's useful for someone
Script (Js):
Image:
Last edited by developer23 on Tue Jan 27, 2015 12:49 pm; edited 2 times in total
Script (Js):
Code:
#pragma strict
var interval : float = 1.0f;
function Start ()
{
InvokeRepeating("Toggle", interval, interval);
}
function Update ()
{
light.intensity = Random.Range (0.3f, 5f);
}
function Toggle()
{
gameObject.active = !gameObject.active;
}
Image:
Last edited by developer23 on Tue Jan 27, 2015 12:49 pm; edited 2 times in total