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