/// <summary> /// Submits a new ParticleSystem instance to the current ParticleSystems list /// </summary> /// <param name="particleSystem"></param> public void SubmitParticleSystem(ParticleSystem particleSystem) { if(!_particleSystems.Contains(particleSystem)) _particleSystems.Add(particleSystem); Application.GameState.Content.Add(particleSystem); }
/// <summary> /// Removes a given ParticleSystem instance from the ParticleSystems list /// </summary> /// <param name="particleSystem"></param> public void Remove(ParticleSystem particleSystem) { _particleSystems.Remove(particleSystem); }
public int GetParticleSystemIndex(ParticleSystem particleSystem) { return _particleSystems.IndexOf(particleSystem); }