public void UnRegisterEvent(EnumEventDispathcer eventName) { if (!mEventDict.ContainsKey(eventName)) { return; } mEventDict.Remove(eventName); }
public void RegisterEvent(EnumEventDispathcer eventName, Action <object> action) { if (mEventDict.ContainsKey(eventName)) { return; } mEventDict[eventName] = action; }
public void Notify(EnumEventDispathcer eventName, object args) { Action <object> action; if (mEventDict.TryGetValue(eventName, out action)) { action(args); } }
protected void RegisterEvent(EnumEventDispathcer eventType, Action <object> action) { mDispathcer.RegisterEvent(eventType, action); mEventList.Add(eventType); }
public void Notify(EnumEventDispathcer eventName) { Notify(eventName, null); }
public void Notify(EnumEventDispathcer eventName, object args) { Action<object> action; if (mEventDict.TryGetValue(eventName,out action)) { action(args); } }
public void RegisterEvent(EnumEventDispathcer eventName, Action<object> action) { if (mEventDict.ContainsKey(eventName)) { return; } mEventDict[eventName] = action; }