its saturday night bra. i am not getting paid. i am new to unity mysel so i would have to look into it but…
it would be something like this.
function Start()
{
beginSequence();
}
function beginSequence()
{
///begin song
//turn on light
yield waitForSeconds(bpm);
///where bpm is the beats per minute var you will have to set/determine
turnoffLights();
}
function turnOffLights()
{
///turn off lights
yield waitForSeconds(bpm)
turnOnLights();
}
It would require something like that as I see.
I would like to see a higher level programmer come up with something, perhaps using a for statement, but that is essentially it. Flip back and forth between on and off on a timer that matches the tempo of the song. If you want to get fancy, like in the video, well thats a whole other can of worms. I suggest you figure that out first.