Hey. I have a sprite with a timer behavior. At the beginning of the level I start it and after its completion I start the same timer. It turns out an endless loop. The problem is that if you minimize the browser window, the game stops, but the timer continues to work. With a pause in the debugger, it also works, but with a timescale = 0, everything is fine.
I tried the same principle in an empty project and there was no such problem. But I can’t find the difference in logic between the empty project and my project. So the question is, what could lead to such a problem with a timer in the project?