Пример #1
0
    public void NewGameInit()
    {
        m_AsyncProcessor.StopAllCoroutines();

        if (m_PooledObjectsSpawned != null)
        {
            if (m_PooledObjectsSpawned.Count == 0)
            {
                return;
            }
            else
            {
                foreach (var item in m_PooledObjectsSpawned)
                {
                    m_AsyncProcessor.DestroyObject(item.gameObject);
                }
                m_PooledObjectsSpawned.Clear();
                Init();
            }
        }
    }