Esempio n. 1
0
 public ParticleFactory(int limit, int particlePerCreate, IParticleSetting setting, params TextureRegion[] regions)
 {
     this.pool = new ParticlePool(regions);
     particles = new List<Particle>();
     this.limit = limit;
     this.particlePerCreate = particlePerCreate;
     if (setting == null)
     {
         throw new Exception("setting must be not null");
     }
     particleSetting = setting;
 }
Esempio n. 2
0
 public ParticleFactory(int limit, int particlePerCreate, IParticleSetting setting, params TextureRegion[] regions)
 {
     this.pool              = new ParticlePool(regions);
     particles              = new List <Particle>();
     this.limit             = limit;
     this.particlePerCreate = particlePerCreate;
     if (setting == null)
     {
         throw new Exception("setting must be not null");
     }
     particleSetting = setting;
 }