示例#1
0
        public void Clear()
        {
            for (int i = 0; i < _activeBricks.Count; i++)
            {
                _brickPool.Recycle(_activeBricks[i]);
            }

            _activeBricks.Clear();
        }
示例#2
0
    public void Recycle(GameObject go)
    {
        GenericPool <T> pool = Find(go.name);

        if (pool != null)
        {
            pool.Recycle(go);
        }
    }