unity wait particle done then destroy code example
Example: c# delete particle system after finished
Destroy(gameObject, GetComponent<ParticleSystem>().startLifetime);
Destroy(gameObject, GetComponent<ParticleSystem>().startLifetime);