protected override void AfterDestroy() { if (mcSmokeParticleSystem != null) { mcSmokeParticleSystem.Destroy(); mcSmokeParticleSystem = null; } }
protected override void AfterInitialize() { mcSmokeParticleSystem = new SmokeRingParticleSystem(this.Game); // Initialize the Smoke Particle System mcSmokeParticleSystem.AutoInitialize(this.GraphicsDevice, this.ContentManager, null); mcSmokeParticleSystem.DrawOrder = 100; }