Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        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());
        }