public ParticleEmitter(TextureRegion textureRegion, ParticleEmitterParameters parameters)
        {
            _randomizer = new RangeRandom();
            _particles  = new List <Particle>();

            TextureRegion = textureRegion;
            Parameters    = parameters;
            Profile       = new PointParticleEmitterProfile();
            Modifiers     = new List <ParticleModifier>();
            AutoEmit      = true;
            AutoEmitDelay = 0.1f;
        }
Пример #2
0
 public abstract Vector2 GetHeading(RangeRandom randomizer);
Пример #3
0
 public abstract Vector2 GetOffset(RangeRandom randomizer);
Пример #4
0
 public override Vector2 GetHeading(RangeRandom randomizer)
 {
     return(randomizer.GetUnitVector());
 }
Пример #5
0
 public override Vector2 GetOffset(RangeRandom randomizer)
 {
     return(Vector2.Zero);
 }
Пример #6
0
 public override Vector2 GetHeading(RangeRandom randomizer)
 {
     return(Heading);
 }