public static void RecycleInstance(IPool o, Type type) { if (o == null) { return; } if (mPoolDic.ContainsKey(type) == false) { mPoolDic.Add(type, new Queue <IPool>()); } if (mPoolDic[type].Contains(o) == false) { o.isPool = true; o.OnRecycle(); mPoolDic[type].Enqueue(o); } }