In Unity, objects can be manipulated by any number of scripts in the scene. A script can reside on the
GameObject it will manipulate, or, as in the case of a light switch, it could trigger an action on a different object, such
as a light. Scripts can be simple and very reusable, complex and very specialized, and anywhere partway between.
Before your head starts spinning from too much scripting theory, let’s simplify the process and just start building
some simple scripts.