internal static ParticleSystem[] GetParticleSystems(ParticleSystem root)
{
if (root == null)
{
return null;
}
List<ParticleSystem> particleSystems = new List<ParticleSystem> {
root
};
GetDirectParticleSystemChildrenRecursive(root.transform, particleSystems);
return particleSystems.ToArray();
}