예제 #1
0
                // ...

                void LateUpdate()
                {
                    // Update particle count display.

                    particleCountText.text  = "PARTICLE COUNT: ";
                    particleCountText.text += list.getParticleCount().ToString();
                }
예제 #2
0
                // ...

                void LateUpdate()
                {
                    // Update particle count display.

                    particleCountText.text = "PARTICLE COUNT: ";

                    if (particleMode == ParticleMode.looping)
                    {
                        particleCountText.text += loopingParticleSystems.getParticleCount().ToString();
                    }
                    else if (particleMode == ParticleMode.oneshot)
                    {
                        particleCountText.text += oneshotParticleSystems.getParticleCount().ToString();
                    }
                }