These scripts are made for controlling emissions and lights for games. Made for Horror Game: Reality Breach
SCRIPT: LIGHTSOUT This script is for controlling light gameobjects that are assigned to be disabled as well as their emission in materials. For emissions to be disabled please attach the Emission Controller on the relevant object (Example: Lightbulb).
SCRIPT: EMISSIONCONTROLLER This script should be inside any game object that you wish their emissions to be controlled. Materials and renderers are pulled automatically once its attached. You can control the emissions from any other object by calling the methods (Example: Fusebox).