Пример #1
0
        private void AddParticleEffect(ParticleEffect particleEffect, ICollidableTile trackingObject)
        {
            particleEffect.LoadContent(m_game.Content);

            particleEffect.Initialise();

            var entry = new LightCausingParticleObject(particleEffect, m_particleRenderer,
                                                       new PointLight()
            {
                Colour         = Color.Orange,
                LightIntensity = 4,
                LightRadius    = 25,
                LightPosition  = new Vector3(300, 160, -100)
            }, trackingObject)
            {
                Name    = "FlameThrower",
                Enabled = false
            };

            ParticleEffects.Add(entry);
        }
Пример #2
0
        private void AddParticleEffect(ParticleEffect particleEffect, ICollidableTile trackingObject)
        {
            particleEffect.LoadContent(m_game.Content);

            particleEffect.Initialise();

            var entry = new LightCausingParticleObject(particleEffect, m_particleRenderer,
            new PointLight()
            {
               Colour = Color.Orange,
               LightIntensity = 4,
               LightRadius = 25,
               LightPosition = new Vector3(300, 160, -100)
            }, trackingObject)
            {
                Name = "FlameThrower",
                Enabled = false
            };

            ParticleEffects.Add(entry);
        }