public void FixedUpdate()
{
this.timeSinceStart += Time.fixedDeltaTime;
if (this.timeSinceStart > this.interval)
{
this.laserOn = !this.laserOn;
this.timeSinceStart = 0;
this.spriteRndr.sprite = this.laserOn ? this.laserOnSprite : this.laserOffSprite;
this.boxCollider.enabled = this.laserOn;
}
this.transform.Rotate(0, 0, rotationSpeed * Time.fixedDeltaTime);
this.interval -= 0.001f;
}