Exemplo n.º 1
0
 //Initiates object in constructor that creates and places smoke sprites.
 public void AddSmoke()
 {
     if (smokes.Count <= MaxParticles)
     {
         smoke = new Smoke(rand);
         smokes.Add(smoke);
     }
 }
Exemplo n.º 2
0
 //Initiates object in constructor that creates and places smoke sprites.
 public void AddSmoke()
 {
     if (smokes.Count <= MaxParticles)
     {
         smoke = new Smoke(rand);
         smokes.Add(smoke);
     }
 }
Exemplo n.º 3
0
 //just initiates smoke object in 0 argument constructor to gain access to properties of Smoke.
 public SmokeHandler()
 {
     smoke            = new Smoke();
     ParticleLifeTime = smoke.MaxTimeToLive;
 }
Exemplo n.º 4
0
 //just initiates smoke object in 0 argument constructor to gain access to properties of Smoke.
 public SmokeHandler()
 {
     smoke = new Smoke();
     ParticleLifeTime = smoke.MaxTimeToLive;
 }