I am having an issue with lights not being able to be active after I have made them unactive. The way I am “turning on” and “turning off” the lights is using these lines of code:
gameObject.light.active = false; //Off
gameObject.light.active = true; //On
The off line works perfectly, however, when I try to turn them on it does not work. Does anyone know why this is happening?