Time.timeScale = 1;
There was a bug where the game was pausing because of that, it has been fixed. Thanks for the comment.