When I try to broadcast a message to another object it has an error that says "BroadcastMessage theBroadcastedMessage has no receiver!"
I have a script for each object:
And for the receiving object:
I am not sure if I wrote the script with something wrong or its just an error from unity. I am not sure how to use BroadcastMessage because I only found a little about it in the scripting references. I would appreciate it if someone could give me some advise.
BroadcastMessage sends to the gameobject you're using it on, and all its children
In your case, it's doing it on the current gameobject
You'll need to get a reference to your other object and do yourOtherGameObject.BroadcastMessage
answered Jun 30 '10 at 12:14 AM