public static voidAddListener(string messageName, Action callback) – Adds a listener that triggers the given callback when the message with the given name is received
public static voidAddListener<T>(Action<T> callback) where T : Message – Adds a listener that triggers the given callback when a message of the given type is received
public static voidAddListener<T>(string messageName, Action<T> callback) where T : Message – Adds a listener that triggers the given callback when a message of the given type and name is received
public static voidRemoveListener(string messageName, Action callback) – Removes a listener that would trigger the given callback when a message with the given name is received
public static voidRemoveListener<T>(Action<T> callback) where T : Message – Removes a listener that would trigger the given callback when a message of the given type is received
public static voidRemoveListener<T>(string messageName, Action<T> callback) where T : Message – Removes a listener that would trigger the given callback when a message of the given type is received
public static voidSend(string messageName) – Sends a message of the given name
public static voidSend<T>(T message) where T : Message – Sends a message of the given type
public static voidSend<T>(string messageName, T message) where T : Message – Sends a message of the given name and type