Inheritance: IContentHost
コード例 #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);
 }