SetTriggerParticles() private method

private SetTriggerParticles ( ParticleSystem ps, int type, object particles, int offset, int count ) : void
ps ParticleSystem
type int
particles object
offset int
count int
return void
コード例 #1
0
 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);
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 public static void SetTriggerParticles(this ParticleSystem ps, ParticleSystemTriggerEventType type, List <ParticleSystem.Particle> particles)
 {
     ParticleSystemExtensionsImpl.SetTriggerParticles(ps, (int)type, particles, 0, particles.Count);
 }