UnityPooler.PoolableGameObject.Clear C# (CSharp) Метод

Clear() приватный Метод

Completely resets the pool. Live objects are on their own but pooled objects will be destroyed.
private Clear ( ) : void
Результат void
        private void Clear()
        {
            if (_mPooledObjs != null)
            {
                while (_pooledObjs.Count > 0)
                {
                    GameObject obj = _pooledObjs.Pop().gameObject;

                    if (obj != null)
                    {
                        Destroy(obj);
                    }
                }
            }

            _mPooledNodes = null;
            _liveNode = null;
            _mPooledObjs = null;
            _mLiveObjs = null;
            _mLiveObjs = null;
            _numOfActiveObjs = 0;
            _initialized = false;
        }