public static BaseEvent GetCache(string type, object eventObj = null) { if (_pool.Count > 0) { BaseEvent evt = _pool.Dequeue(); evt.Reset(type, eventObj); return(evt); } return(new BaseEvent(type, eventObj)); }
public static BaseEvent GetCache(string type, object eventObj = null) { if (_pool.Count > 0) { BaseEvent evt = _pool.Dequeue(); evt.Reset(type, eventObj); return(evt); } return(new BaseEvent(type, eventObj)); }