void CheckPauseState() { if (!bl_Selected) { //If the player has not selected a mode then freeze the game Time.timeScale = 0f; } else { //If the player has selected a mode then unfreeze the game Time.timeScale = 1f; //When the player has selected a mode and the instructions are off if (!PCScript.bl_Instructions) { //Run the timer DataScript.CompletionTime(); } } }