Exemplo n.º 1
0
 public void Apply(Particle particle, float deltaTime)
 {
     particle.Color = Color.Lerp(InitialColor, FinalColor, particle.TimePercentage);
 }
Exemplo n.º 2
0
        public static Particle GetFreeParticle()
        {
            if (ParticleCount < ParticleLimit)
            {
                Particle particle = new Particle();
                particles[ParticleCount] = particle;
                ParticleCount++;
                return particle;
            }

            return null;
        }
Exemplo n.º 3
0
 public void Apply(Particle particle, float deltaTime)
 {
     particle.Direction = Vector2.Lerp(InitialDirection, FinalDirection, particle.TimePercentage);
 }