|
Hi, I setup a ParticlePrefab that instantiates for the player when I press a certain key on the keyboard. When the particles collide with an object that is a trigger, our OnParticleCollision(GameObject other) function will know about that collision. Which is great, but not exactly what I need to happen. Once that the first particle collides with the object that is a trigger, I need to kill a fixed number of particles (like 8 or 9) after that first particle, stop the instantiation for n seconds, and then repeat the instantiation. A possible solution is may be storing a fixed amount of particles in an array. Here is some code:
(comments are locked)
|
