// ================================= // Functions. // ================================= // ... void Awake() { loopingParticleSystems = FindObjectOfType <LoopingParticleSystemsManager>(); oneshotParticleSystems = FindObjectOfType <OneshotParticleSystemsManager>(); loopingParticleSystems.Init(); oneshotParticleSystems.Init(); }
// ================================= // Functions. // ================================= // ... void Awake() { (list = GetComponent <LoopingParticleSystemsManager>()).Init(); }