public void Put2(IdType it) { #if UNITY_EDITOR if (PoolMgr.instance != null && !string.IsNullOrEmpty(PoolMgr.instance.m_debugIdTypePool) && it.GetType().Name.Contains(PoolMgr.instance.m_debugIdTypePool)) { Debuger.LogError("放回对象池:{0}", it.GetType().Name); } #endif if (it.IsInPool == true) { Debuger.LogError("类型对象池,重复放入对象:" + it.GetType().ToString()); return; } it.OnClear(); it.IsInPool = true; m_pool.Push(it); }