// Updates the timer (including the graphical representation) // If time runs out in the trial or the break scene. It switches to the next scene. void StartTimer() { tiempo -= Time.deltaTime; if (showTimer) { BoardFunctions.UpdateTimer(); } // When the time runs out: if (tiempo < 0) { ChangeToNextScene(BoardManager.itemClicks, false); } }