Example #1
0
 public void addParticleSource(ParticleSource source)
 {
     particleSources.Add(source);
 }
Example #2
0
        public ParticleSystem(Entity trackedEntity, List<Texture2D> sprites, float spread, float size, int number, Boolean relativePosition, float lifetime)
        {
            this.trackedEntity = trackedEntity;
            this.maxNumberOfParticles = number;

            ParticleSource source = new ParticleSource();
            source.sprites = sprites;
            source.particleSpread = spread;
            source.size = size;
            source.relativePosition = relativePosition;
            source.particleLifeTime = lifetime;
            addParticleSource(source);
        }