void Update() { //time ended if (sec == 0 && minutes == 0) { timeText.text = "Time's Up!"; if (!timesUp) { audioSrc.PlayOneShot(clockRing); _freezer.FreezeAndRestartScene(clockRing.length); StopCoroutine(second()); timesUp = true; } } }
void Update() { //time ended if (sec == 0 && minutes == 0) { timeText.text = "Time's Up!"; if (!timesUp) { audioSrc.PlayOneShot(clockRing); _freezer.FreezeAndRestartScene(clockRing.length); StopCoroutine(second()); timesUp = true; } } }