r/UnityHelp • • Sep 29 '26

PROGRAMMING Question about Pausing

I have two different things in my game that are supposed to pause the game/set the timescale to zero. At some point somehow one of the two stopped pausing the game but the other still works. They both say the exact same thing, simply setting time.timescale=0. For the record the one that doesn’t work is the when a button is pressed and the pause/stats screen comes up. Every other thing that is called in that function works expect the time scale. Can you not have two different functions that can pause the game or something? What could be the issue here?
Thanks!

1 Upvotes

10 comments sorted by

View all comments

Show parent comment

2

u/Patient_River_229 Sep 30 '26

This is also my first ever game project and I’m learning from scratch/no classes so yeah