コード例 #1
0
ファイル: ZWPictureBox.cs プロジェクト: marlonnn/Cii.Lar
        public void UpdateHoleNumber(int value)
        {
            ActiveLaser activeLaser = Laser as ActiveLaser;

            if (activeLaser != null)
            {
                activeLaser.UpdateHoleNumber(value);
            }
        }
コード例 #2
0
 public LaserFactory(ZWPictureBox picturebox)
 {
     this.picturebox                = picturebox;
     this.fixedLaser                = new FixedLaser(picturebox);
     this.activeLaser               = new ActiveLaser(picturebox);
     this.alignLaser                = new AlignLaser(picturebox);
     alignLaser.ZoomHandler        += picturebox.ZoomHandler;
     alignLaser.ButtonStateHandler += picturebox.ButtonStateHandler;
 }
コード例 #3
0
 private IEnumerator TrippleShotActiveCoroutine()
 {
     activeLaser = ActiveLaser.TrippleShot;
     for (float timer = Time.time; timer < _powerUpTimeout.TrippleShot; timer += Time.deltaTime)
     {
         yield return(null);
     }
     activeLaser = ActiveLaser.Default;
 }
コード例 #4
0
 public LaserFactory(RichPictureBox richPictureBox)
 {
     this.richPictureBox            = richPictureBox;
     this.fixedLaser                = new FixedLaser(richPictureBox);
     this.activeLaser               = new ActiveLaser(richPictureBox);
     this.alignLaser                = new AlignLaser(richPictureBox);
     this.alignLaser.ZoomHandler   += richPictureBox.ZoomHandler;
     alignLaser.ButtonStateHandler += Program.EntryForm.ButtonStateHandler;
 }