Esempio n. 1
0
 /// <summary>
 /// 分发事件
 /// </summary>
 /// <param name="eventKey">事件Key</param>
 /// <param name="notific">通知</param>
 public void DispatchEvent(T eventKey, GEvent notific)
 {
     if (!eventListeners.ContainsKey(eventKey))
     {
         return;
     }
     eventListeners[eventKey](notific);
 }
Esempio n. 2
0
 void OnApplicationQuit()
 {
     GEvent.Call(EVENT_APP_QUIT);
 }
Esempio n. 3
0
 /// <summary>
 /// 分发消息
 /// </summary>
 /// <param name="msg">Message.</param>
 public static void onRecv_1001(GEvent msg)
 {
 }
Esempio n. 4
0
 void OnApplicationPause(bool pauseStatus)
 {
     GEvent.Call(EVENT_APP_PAUSE, pauseStatus);
 }