I have read every manual, user guide, and post I can find, but I still don't understand this.
I have a "Dispatcher" and a "Runner". The Dispatcher uses Instantiate() to create a Runner prefab. That prefab needs to tell the Dispatcher when it has collided with something so that the Dispatcher can take action. How does the Runner (Instance) communicate back with the Dispatcher (Parent Script)?
Dispatcher.js (attached to Empty game object as central controller):
Runner.js (attached to Prefab):
What is wrong with my thinking? How else can you code an intelligent program without a central controller? I need someone to be the referee. I have seen a great demo on this, (Intergalactic Sheep Pong) but it wasn't using Instantiated Prefabs.
I also don't see how the Dispatcher can communicate with Runners either since it re-uses newRunner for every instantiation. It can only commuicate during this one LateUpdate() unless it saves a tag or something.
You are right - you need to teach the runner about the dispatcher.
Note if you used owner in Awake on the Runner then you could actually modify the value in the prefab before calling instantiate.