16
NGUI 3 Support / Re: UIEventListener confusion
« on: June 05, 2012, 05:28:17 AM »
Attach a script with a FunctionA() in it to the gameObjectA.
Attach UIButtonMessage to the gameobjectB.
Set gameObjectA as target of UIButtonMessage, and write "FunctionA" in function name field.
Now gameObjectA will send a message wich will activate that function in gameObjectB.
GameObjectA can be a manager, and every other object can speak with it to activate its functions =)
Attach UIButtonMessage to the gameobjectB.
Set gameObjectA as target of UIButtonMessage, and write "FunctionA" in function name field.
Now gameObjectA will send a message wich will activate that function in gameObjectB.
GameObjectA can be a manager, and every other object can speak with it to activate its functions =)