void OnDisable()
{
Messager.UnregisterEvent(MessageName, Execute);
Messager.RemoveMessage(MessageName, Execute);
}
void Execute()
m_RegisteredMessages[eventName] += message;
public static void UnregisterEvent(string eventName, Message message)
public static void RemoveMessage(string eventName, Message message)
var currentEvent = m_RegisteredMessages[eventName];
currentEvent -= message;