Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
 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);
 }