public bool isBossDead; //has the boss been defeated for this level? // Use this for initialization void Start() { isBossDead = false; isAtBoss = false; gameController = GameObject.FindGameObjectWithTag("GameController"); gameScript = gameController.GetComponent <GameController> (); originalFireRate = fireRate; originalSpeed = speed; shieldActive = false; mainCamera = Camera.main; cameraScript = mainCamera.GetComponent <CameraScroller> (); torpedoUI = GameObject.FindGameObjectWithTag("torpedoui"); torpedoUI.gameObject.GetComponent <Image> ().sprite = torpedoReady; shieldUI = GameObject.FindGameObjectWithTag("shieldui"); shieldImage = shieldUI.gameObject.GetComponent <Image> (); shield.SetActive(false); currentShield = maxShield; shieldCooldown = false; }