Emit() публичный Метод

public Emit ( IParticleLogic logic, float life ) : Particle
logic IParticleLogic
life float
Результат Particle
Пример #1
0
        public void Emit()
        {
            if (count > 80)
            {
                return;
            }

            ParticleManager particlemanager = ParticleManager.GetInstance();

            particlemanager.Emit(this, (float)rand.NextDouble() * life);
        }
Пример #2
0
        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;
        }
Пример #3
0
        public void Emit()
        {
            ParticleManager particlemanager = ParticleManager.GetInstance();

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