hyades.graphics.particle.ParticleManager.Emit C# (CSharp) Method

Emit() public method

public Emit ( IParticleLogic logic, float life ) : Particle
logic IParticleLogic
life float
return Particle
        public Particle Emit(IParticleLogic logic, float life)
        {
            if (particle_pool.Count == 0)
                return null;

            Particle particle = particle_pool.Dequeue();
            particle.in_pool = false;
            particle.Create(logic, life);

            return particle;
        }

Usage Example

Example #1
0
        public void Emit()
        {
            if (count > 80)
            {
                return;
            }

            ParticleManager particlemanager = ParticleManager.GetInstance();

            particlemanager.Emit(this, (float)rand.NextDouble() * life);
        }
All Usage Examples Of hyades.graphics.particle.ParticleManager::Emit