private void Awake()
    {
        // initializing SingleTone for this manager.
        if (explosionPoolManager == null)
        {
            explosionPoolManager = this;
        }
        else if (explosionPoolManager != this)
        {
            Destroy(gameObject);
        }

        // Filling up the pool
        LoadParticles();
    }
예제 #2
0
 void Awake()
 {
     m_instance = this;
 }