Creating A Pause In Unity
Creating a pause function in Unity is veryeasy to implement. It only takes a few simple lines of code yet it’s a commonly asked question, so I’ll show you a quick and easy way to implement pausing of your game in Unity. Time.timeScale = 0f; Time.timeScale is the scale of which time passes by in…