// Update is called once per frame void Update() { if (timeLeft > 0) { if (!this.gameObject.GetComponent <AudioSource>().isPlaying) { this.gameObject.GetComponent <AudioSource>().PlayOneShot(this.GetComponent <AudioSource>().clip, 1f); } countDownMeter.fillAmount = (timeLeft / maxTime); timeLeft--; if (timeLeft == 0) { hitManager.ResetForce(); this.gameObject.GetComponent <AudioSource>().Stop(); } } }