Пример #1
0
 /// <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);
 }
Пример #2
0
 /// <summary>
 /// Removes a given ParticleSystem instance from the ParticleSystems list
 /// </summary>
 /// <param name="particleSystem"></param>
 public void Remove(ParticleSystem particleSystem)
 {
     _particleSystems.Remove(particleSystem);
 }
Пример #3
0
 public int GetParticleSystemIndex(ParticleSystem particleSystem)
 {
     return _particleSystems.IndexOf(particleSystem);
 }