private SetTriggerParticles ( |
||
ps | ||
type | int | |
particles | object | |
offset | int | |
count | int | |
리턴 | void |
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); }
public static void SetTriggerParticles(this ParticleSystem ps, ParticleSystemTriggerEventType type, List <ParticleSystem.Particle> particles, int offset, int count) { if (particles == null) { throw new ArgumentNullException("particles"); } if (offset >= particles.Count) { throw new ArgumentOutOfRangeException("offset", "offset should be smaller than the size of the particles list."); } if (offset + count >= particles.Count) { throw new ArgumentOutOfRangeException("count", "offset+count should be smaller than the size of the particles list."); } ParticleSystemExtensionsImpl.SetTriggerParticles(ps, (int)type, particles, offset, count); }
public static void SetTriggerParticles(this ParticleSystem ps, ParticleSystemTriggerEventType type, List <ParticleSystem.Particle> particles) { ParticleSystemExtensionsImpl.SetTriggerParticles(ps, (int)type, particles, 0, particles.Count); }