public void Recycle(string poolName, GameObject obj) { GameObjectPool pool = null; if (!m_PoolMap.TryGetValue(poolName, out pool)) { Log.e("Recycle No Pool"); } pool.Recycle(obj); }
public void Recycle(string poolName, GameObject obj) { GameObjectPool cell = null; if (!m_PoolMap.TryGetValue(poolName, out cell)) { Log.e("#Recycle Not Find Pool:" + poolName); return; } cell.Recycle(obj); }