public void Destroy() { LoggerSystem.Instance.Debug("EventSystem destroy begin"); mEventHandlerMap.Clear(); for (int i = 0; i < mFiredEventList.Count; ++i) { mEventPool.Recycle(mFiredEventList [i]); } mFiredEventList.Clear(); LoggerSystem.Instance.Debug("EventSystem destroy end"); }
protected void Recycle(T t) { mAssociatedPool.Recycle(t); }