/// <summary> /// 订阅事件处理函数。 /// </summary> /// <param name="id">事件类型编号。</param> /// <param name="handler">要订阅的事件处理函数。</param> public void Subscribe(int id, EventHandler <GameEventArgs> handler) { m_EventPool.Subscribe(id, handler); }
public void Subscribe(enEventID id, EventHandler <GameEventArgs> handler) { eventPool.Subscribe(id, handler); }