void Update() { if (!TimeUp()) { currentTime -= Time.deltaTime; timerText.text = currentTime.ToString("f0"); UITimer.DisableDotsOnTime(currentTime); } else { Debug.Log("Time is up"); SceneManager.LoadScene(0); } }