I have a prefab called "trafficLight", it has a js script called "setlights" and that script has a function called "SetLight(state)"
I have lots of trafficLight gameobjects in my scene.
How do I access the function SetLight(n) from any other script (or animation event) in my scene so that all traffic lights get updated at the same time?