예제 #1
0
 public void addParticleSource(ParticleSource source)
 {
     particleSources.Add(source);
 }
예제 #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);
        }