Beispiel #1
0
 public void AddSmoke()
 {
     if (smokes.Count < MaxParticles)
     {
         smoke = new Smoke(rand, startPosition);
         smokes.Add(smoke);
     }
 }
Beispiel #2
0
 //Initiates object in constructor that creates and places smoke sprites.
 public SmokeSystem(Vector2 startPosition)
 {
     this.startPosition = startPosition;
     smoke            = new Smoke();
     ParticleLifeTime = smoke.MaxTimeToLive;
 }