// Use this for initialization private void Start() { if (Instance == null) { Instance = this; } else { Destroy(gameObject); } System = GetComponent <ParticleSystem>(); parts = new ParticleSystem.Particle[System.maxParticles]; }
// Use this for initialization private void Start() { if (Instance == null) { Instance = this; } else { Destroy(gameObject); } System = GetComponent<ParticleSystem>(); parts = new ParticleSystem.Particle[System.maxParticles]; }
// 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(); }