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