Exemple #1
0
                // =================================
                // Functions.
                // =================================

                // ...

                void Awake()
                {
                    loopingParticleSystems = FindObjectOfType <LoopingParticleSystemsManager>();
                    oneshotParticleSystems = FindObjectOfType <OneshotParticleSystemsManager>();

                    loopingParticleSystems.Init();
                    oneshotParticleSystems.Init();
                }
                // =================================
                // Functions.
                // =================================

                // ...

                void Awake()
                {
                    (list = GetComponent <LoopingParticleSystemsManager>()).Init();
                }