Package: pumpkin.events

EventDispatcher

function addGameObjectEventListener( type : String, listenerObject : GameObject, listenerFun : String, useCapture : bool ) : void

Parameters

type

Event type name to listen for.

listenerObject

Target GameObject to send messages to. listenerFun Method name to call via SendMessage

listenerFun

useCapture


Description
Add GameObject message handler, dispatching event sends message to the method name listenerFun with capture.