public static void SetTriggerParticles(this ParticleSystem ps, ParticleSystemTriggerEventType type, List <ParticleSystem.Particle> particles)
{
if (particles == null)
{
throw new ArgumentNullException("particles");
}
ParticleSystemExtensionsImpl.SetTriggerParticles(ps, (int)type, particles, 0, particles.Count);
}