// Use this for initialization void Start() { bossBody = transform.gameObject; playerBody = GameObject.FindGameObjectWithTag("Player"); facingRight = true; laserRechargeTimer = 0; laserOnCooldown = false; forwardDirection = Vector3.right; laserReference = transform.FindChild("Laser").GetComponent<CannonBossLaser>(); }
void Start() { hittable = true; cannonBossScript = transform.parent.GetComponent<CannonBossLaser>(); }