Пример #1
0
        /// <summary>
        /// 加载组合粒子特效
        /// </summary>
        private void LoadComplexPaiticleEffect()
        {
            fire0 = new ComplexParticleEffect();
            fire0.Create(gviComplexParticleEffectType.gviComplexParticleEffectFire_0);
            //fire0.Refresh();
            position.SetCoords(fire0X, fire0Y, fire0Z, 0, 0);
            fire0.SetPosition(position);

            smoke0 = new ComplexParticleEffect();
            smoke0.Create(gviComplexParticleEffectType.gviComplexParticleEffectSmoke_0);
            //smoke0.Refresh();
            position.SetCoords(smoke0X, smoke0Y, smoke0Z, 0, 0);
            smoke0.SetPosition(position);

            explosion0 = new ComplexParticleEffect();
            explosion0.Create(gviComplexParticleEffectType.gviComplexParticleEffectExplosion_0);
            //explosion0.Refresh();
            position.SetCoords(explosion0X, explosion0Y, explosion0Z, 0, 0);
            explosion0.SetPosition(position);

            rocketTailFlame0 = new ComplexParticleEffect();
            rocketTailFlame0.Create(gviComplexParticleEffectType.gviComplexParticleEffectRocketTailFlame);
            //rocketTailFlame0.Refresh();
            position.SetCoords(rocketTailFlameX, rocketTailFlameY, rocketTailFlameZ, 0, 0);
            rocketTailFlame0.SetPosition(position);
        }
Пример #2
0
 public ComplexPropertyFrm(object oo)
 {
     InitializeComponent();
     this.peffect = (ComplexParticleEffect)oo;
     this.peffect.NotifyPropertyChangeEvent += new ComplexParticleEffect.PropertyChanged(peffect_NotifyPropertyChange);
     this.propertyGrid1.SelectedObject       = peffect;
 }