private void Awake() { // initializing SingleTone for this manager. if (explosionPoolManager == null) { explosionPoolManager = this; } else if (explosionPoolManager != this) { Destroy(gameObject); } // Filling up the pool LoadParticles(); }
void Awake() { m_instance = this; }