|
DoopelPonger
|
Particle system to spawn when a ball is destroyed. More...


Public Member Functions | |
| void | Awake () |
| Initialize references. More... | |
| void | PlayParticle (Vector3 spawnPosition, Color color) |
| Play the particle system at spawnPosition and change the color of the particles. More... | |
Public Attributes | |
| ParticleSystem | particles |
| float | waitTime |
Particle system to spawn when a ball is destroyed.
This object takes a position and color for the particles and then waits for a set amount of time before returning this object back to the object pooler for future use.
| void CoopBallHitParticle.Awake | ( | ) |
Initialize references.
| void CoopBallHitParticle.PlayParticle | ( | Vector3 | spawnPosition, |
| Color | color | ||
| ) |
Play the particle system at spawnPosition and change the color of the particles.
| spawnPosition | The location the particle system should be moved to. |
| color | The color of the particles being emitted. |
| ParticleSystem CoopBallHitParticle.particles |
ParticleSystem that should be played.
| float CoopBallHitParticle.waitTime |
The amount of time to wait before returning this object to the object pooler for future use.
1.8.14