public void UpdateHoleNumber(int value) { ActiveLaser activeLaser = Laser as ActiveLaser; if (activeLaser != null) { activeLaser.UpdateHoleNumber(value); } }
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; }
private IEnumerator TrippleShotActiveCoroutine() { activeLaser = ActiveLaser.TrippleShot; for (float timer = Time.time; timer < _powerUpTimeout.TrippleShot; timer += Time.deltaTime) { yield return(null); } activeLaser = ActiveLaser.Default; }
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; }