コード例 #1
0
ファイル: GameObjectPoolMgr.cs プロジェクト: tkonexhh/GFrame
        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);
        }
コード例 #2
0
        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);
        }