Beispiel #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);
     }
 }
 //Initiates object in constructor that creates and places smoke sprites.
 public void AddSmoke()
 {
     if (smokes.Count <= MaxParticles)
     {
         smoke = new Smoke(rand);
         smokes.Add(smoke);
     }
 }
Beispiel #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;
 }
 //just initiates smoke object in 0 argument constructor to gain access to properties of Smoke.
 public SmokeHandler()
 {
     smoke = new Smoke();
     ParticleLifeTime = smoke.MaxTimeToLive;
 }