So, I’m working on a script that recreates the objective of the “Into The Abyss” level of the 2013 Unity game, Slender: The Arrival. If you don’t know what I’m talking about, I’m talking about activating power generators. With the help of a forum friend, I was able to get the majority of this script completed. But, I need some help with what to do next with the script. In Slender: The Arrival, once you turn on a generator, the generator light turns from red to green. I want this to happen in the horror game that I’m making. If anybody knows a way to do this, it would be much obliged. Please and thank you!
P.S. I also need some help with these compiler errors I keep on getting. Here’s a screenshot of my script: