예제 #1
0
 /// <summary>
 /// Adds a particle emitter to the particles.
 /// </summary>
 /// <param name="emitter">The emitter to add.</param>
 /// <param name="changeEmitterTarget">Flag to change the emitters target to the particles of this system. Defaults to true.</param>
 public void Add(ParticleEmitter emitter, bool changeEmitterTarget)
 {
     if (emitter == null)
     {
         throw new ArgumentNullException("emitter");
     }
     if (changeEmitterTarget)
     {
         emitter.Target.Clear();
         foreach (BaseParticle b in m_Particles)
         {
             emitter.Target.Add(b);
         }
     }
     m_Particles.Add(emitter);
 }
예제 #2
0
 /// <summary>
 /// Add a particle emitter to the particles.
 /// </summary>
 /// <param name="emitter">The emitter to add.</param>
 public void Add(ParticleEmitter emitter)
 {
     Add(emitter, true);
 }