Emit() public méthode

public Emit ( IParticleLogic logic, float life ) : Particle
logic IParticleLogic
life float
Résultat Particle
        public void Emit()
        {
            if (count > 80)
            {
                return;
            }

            ParticleManager particlemanager = ParticleManager.GetInstance();

            particlemanager.Emit(this, (float)rand.NextDouble() * life);
        }
        public void Tail(Particle parent)
        {
            ParticleManager particlemanager = ParticleManager.GetInstance();
            Particle        child           = particlemanager.Emit(tail_logic, (float)rand.NextDouble());

            if (child == null)
            {
                return;
            }

            child.scale    = parent.scale;
            child.position = parent.position;
        }
        public void Emit()
        {
            ParticleManager particlemanager = ParticleManager.GetInstance();

            particlemanager.Emit(this, (float)rand.NextDouble() * life * 0.5f + life * 0.5f);
        }