示例#1
0
        virtual public void DestroyPool()
        {
            //		Debug.Log("[" + Time.time + "] " + GetType() + "::DestroyPool()");

            for (int i = m_objectPool.Count - 1; i >= 0; i--)
            {
                PooledObject po = m_objectPool[i];
                if (po != null)
                {
                    po.DestroyObject();
                }
                m_objectPool.RemoveAt(i);
            }
        }