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; }
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; }