The proper way of pausing the game in Unity
Time.timeScale = 0;
If you want to restore the game:
Time.timeScale = 1;
Please feel free to contact me if you have any question. <br> https://t.me/NeedoneApp
Join the newsletter to receive the latest updates in your inbox.