/// <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); }
void OnApplicationQuit() { GEvent.Call(EVENT_APP_QUIT); }
/// <summary> /// 分发消息 /// </summary> /// <param name="msg">Message.</param> public static void onRecv_1001(GEvent msg) { }
void OnApplicationPause(bool pauseStatus) { GEvent.Call(EVENT_APP_PAUSE, pauseStatus); }