Hi.
I have an array of projectiles that my enemy ship shoots torward the player. When a projectile hits something or get out of the screen, it gets desativated ( Its positions get reseted, and stop updating until it gets activated again ).
Attached to the projectile, I have a trail particle system that works fine.
But the problem that I am having is this: When the projectile desativate, the particle also stop as it should. But when that projectile activates again, the particle appears, for a second, at the last position before stopping, before starting at the right place.
I desativate the projectile with this: “gameObject.SetActive(false);” And that prevents the particle to finish.
So, is there a way for me to wait until the particles finishes and then to use the “SetActive(false)” ?
Thanks for any help.