I have a pause button that sets the timescale to 0 when it's pressed. This worked fine.
Just earlier I added a timer with a global variable to my game. It would count down from 60 by subtracting 1 from the global variable every second.
Ever since I added that, the pause function no longer works. When I press the pause button, the global variable changes back to 60 and it looks like it resets the layout. I appreciate any help with fixing this problem.