コード例 #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;
 }
コード例 #2
0
ファイル: ParticleFactory.cs プロジェクト: backviet/winengine
 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;
 }