I'm currently designing a car game and have hit a snag.
I've got several lights, all of the lights are attached to their own, seperate, empty gameobject.
What i'm planning to do, is have the ability for the lights to be switched on/off with the touch of a GUI button, this is for Android. By default, the lights are off.
I've tried a variety of scripts i've made, such as the one below:
Any ideas on this one please?