// Use this for initialization
        private void Start()
        {
            if (Instance == null)
            {
                Instance = this;
            }
            else
            {
                Destroy(gameObject);
            }

            System = GetComponent <ParticleSystem>();
            parts  = new ParticleSystem.Particle[System.maxParticles];
        }
Exemplo n.º 2
0
        // Use this for initialization
        private void Start()
        {
            if (Instance == null)
            {
                Instance = this;
            }
            else
            {
                Destroy(gameObject);
            }

            System = GetComponent<ParticleSystem>();
            parts = new ParticleSystem.Particle[System.maxParticles];
        }
Exemplo n.º 3
0
        // Use this for initialization
        private void Start()
        {
            if (Instance == null)
            {
                Instance = this;
            }
            else
            {
                Destroy(gameObject);
            }

            System = GetComponent <ParticleSystem>();
            parts  = new ParticleSystem.Particle[System.main.maxParticles];

            for (int i = 0; i < System.main.maxParticles; i++)
            {
                System.Emit(1);
            }
            System.Clear();
        }