public static EventDispatcher GetInstance()
 {
     if (instance == null)
         instance = new EventDispatcher();
     return instance;
 }
Пример #2
0
 /// <summary>
 /// unregister the target event message.
 /// </summary>
 public void UnRegisterEvent()
 {
     EventDispatcher.GetInstance().MainEventManager.RemoveEventListener <string>(EventSystemDefine.EventTestUserInput, this.OnUserInput);
 }