Property | Type | Description | |
---|---|---|---|
listenTypeCollectItem | string | ||
listenTypeConfig | string | ||
listenTypeInput | string | ||
listenTypePlayer | string |
Method | Description | |
---|---|---|
ClearAll ( ) : void |
Clears all registered listeners. Should be called when a new scene is loaded, etc.
|
|
Listen ( string listenerType, Component component ) : void |
Register implicitly with this instead of gameObject.
|
|
Listen ( string listenerType, GameObject go ) : void |
Adds a listener for a particular type of message.
|
|
Send ( MessageAM, msg ) : void |
Sends a message (calls the function denoted by methodName) to all registered listeners for the given message type.
|
|
StopListen ( string listenerType, GameObject go ) : void |
Removes a listener for the specified type of message.
|
public static Listen ( string listenerType, Component component ) : void | ||
listenerType | string |
/// A |
component | Component |
/// A |
return | void |
public static Listen ( string listenerType, GameObject go ) : void | ||
listenerType | string |
/// A |
go | GameObject |
/// A |
return | void |
public static Send ( MessageAM, msg ) : void | ||
msg | MessageAM, |
/// A |
return | void |
public static StopListen ( string listenerType, GameObject go ) : void | ||
listenerType | string |
/// A |
go | GameObject |
/// A |
return | void |
public static string listenTypeCollectItem | ||
return | string |