// Update is called once per frame void Update() { if (StartTimer == false) { return; } timerParent.SetActive(true); currentTime -= 1 * Time.deltaTime; float s = (currentTime / startTime); timer.fillAmount = s; if (s < 0) { Player.StopFiring(); StartTimer = false; } }