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