예제 #1
0
 public void RemoveParticleSystem(ParticleSystemBase particleSystem)
 {
     if (particleSystem.SubsystemParticles == this)
     {
         particleSystem.OnRemoved();
         m_particleSystems.Remove(particleSystem);
         particleSystem.SubsystemParticles = null;
         return;
     }
     throw new InvalidOperationException("Particle system is not added.");
 }
예제 #2
0
 public void AddParticleSystem(ParticleSystemBase particleSystem)
 {
     if (particleSystem.SubsystemParticles == null)
     {
         m_particleSystems.Add(particleSystem, value: true);
         particleSystem.SubsystemParticles = this;
         particleSystem.OnAdded();
         return;
     }
     throw new InvalidOperationException("Particle system is already added.");
 }
예제 #3
0
 public bool ContainsParticleSystem(ParticleSystemBase particleSystem)
 {
     return(particleSystem.SubsystemParticles == this);
 }