Пример #1
0
 public override void Ctrl()
 {
     base.Ctrl();
     if (this.Time == 1 && this.PL == null)
     {
         Particle3D_BendLaser particle3DBendLaser = new Particle3D_BendLaser(this.StageData, this.GhostingCount, (int)((double)this.ScaleLength * 16.0), (int)this.ColorType);
         particle3DBendLaser.OriginalPosition = this.OriginalPosition;
         particle3DBendLaser.LastPoints       = this.LastPoints;
         this.PL = particle3DBendLaser;
     }
     this.PL.LastPoints        = this.LastPoints;
     this.PL.TransparentValueF = this.TransparentValueF;
     if (this.Time % 8 != 0)
     {
         return;
     }
     this.Grazed = false;
 }
Пример #2
0
        public Bullet_BendLaser(
            StageDataPackage StageData,
            PointF OriginalPosition,
            float Velocity,
            double Direction,
            byte ColorType,
            int Length,
            int Width)
            : this(StageData, (string)null, OriginalPosition, Velocity, Direction, Length)
        {
            this.ColorType = ColorType;
            ParticleBeginBullet particleBeginBullet = new ParticleBeginBullet(StageData, this.Position, ColorType);

            particleBeginBullet.Scale  = 0.5f;
            particleBeginBullet.Active = true;
            Particle3D_BendLaser particle3DBendLaser = new Particle3D_BendLaser(StageData, this.GhostingCount, Width, (int)ColorType);

            particle3DBendLaser.OriginalPosition = this.OriginalPosition;
            particle3DBendLaser.LastPoints       = this.LastPoints;
            this.PL = particle3DBendLaser;
        }