listening to multiple objects

I have a script that is spawning multiple objects, each with a unique name, in a scene. How do I then have the original script listen for a change in a variable in any or all of the spawned objects?

There’s no automatic way for a script to listen to a variable’s value to detect when it changes. However, you can call SendMessage or call a function on the manager object whenever the relevant value changes. If you are using JavaScript, you will need to add an extra line of code to do this wherever you modify the variable. In C#, you can replace the variable with a property. This is accessed in the same way as a variable except that you can have some code called each time the variable is read or assigned:-

int myProp {
   get {
        return myPropValue;
    }
   set {
        myPropValue = value;
        managerObject.SendMessage("MyPropChanged");
   }
}