public void RegAnyEvent(string key, EventManager.AnyCallEvent callEvent) { EventManager.EventGather gather = new EventManager.EventGather(); gather.mAnyEvents = callEvent; mEvents.Add(key, gather); EventManager.instance.Add(key, callEvent); }
public void RegAction <T>(string key, Action <T> callEvent) { EventManager.EventGather gather = new EventManager.EventGather(); mEvents.Add(key, gather); gather.mTActions = EventManager.instance.AddEvent <T>(key, callEvent); }
public void RegGetEvent <T, S>(string key, Func <T, S> callBack) { EventManager.EventGather gather = new EventManager.EventGather(); mEvents.Add(key, gather); gather.mGetEvent = EventManager.instance.AddGetEvent <T, S>(key, callBack); }