![]() |
Eye of the Nile Docs
Everything you need to know to get started!
|
When a particle spawned, this script will despawn it after its duration is up.
Documentation updated 8/26/2024
Private Member Functions | |
void | Awake () |
Set reference to particles and get effect duration from it. | |
void | Update () |
Simple timer that destroys the effect object when it expires expires. | |
Private Attributes | |
ParticleSystem | spawnedParticles |
Reference to the particles. | |
float | effectDuration |
How long the particles will last before they despawn. | |
|
private |
Set reference to particles and get effect duration from it.
|
private |
Simple timer that destroys the effect object when it expires expires.
|
private |
How long the particles will last before they despawn.
|
private |
Reference to the particles.