How to stop a countdown timer and disable/stop everything in the scene?

I’m working how to stop a timer and show “Out of time” on the UI text that used to show the remaining time when the count reach zero. However, the bool gameOver in the Update() didn’t check and turn itself to true when the time reach zero.

What can i do if i want to freeze everything once the time reach zero?

What you could do is set the timescale with a coroutine that has the same delay as the visual counter and gets called as soon as the timer starts running.

If you want to “freeze” everything in the scene you can manually set the speed of the time unity uses with:

Time.timeScale = 0;