static void DispatchCustomEvent(string name, string msg) { EventDispatcher eventDispatcher = Director.GetInstance().GetEventDispatcher(); eventDispatcher.DispatchCustomEvent(name, msg); }
static void RemoveCustomEvent(EventListener eventListener) { EventDispatcher eventDispatcher = Director.GetInstance().GetEventDispatcher(); eventDispatcher.RemoveEventListener(eventListener); }
public Node() { EventDispatcher = Director.GetInstance().GetEventDispatcher(); }
static void RemoveCustomEvent(string name) { EventDispatcher eventDispatcher = Director.GetInstance().GetEventDispatcher(); eventDispatcher.RemoveCustomEventListeners(name); }
static EventListener RegistCustomEvent(string name, Event callback) { EventDispatcher eventDispatcher = Director.GetInstance().GetEventDispatcher(); return(eventDispatcher.AddCustomEventListener(name, callback)); }
public static Director GetInstance() { return(_mInstance ?? (_mInstance = new Director())); }