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