function
addGameObjectEventListener( type : String, listenerObject : GameObject, listenerFun : String ) : voidParameters
type | Event type name to listen for. |
listenerObject | Target GameObject to send messages to. listenerFun Method name to call via SendMessage |
listenerFun | |
Description
Add GameObject message handler, dispatching event sends message to the method name listenerFun.