unity pause game 2020 code example Example: how to make a pause feautre in unity if(Pause){ Time.timeScale = 0; } else{ Time.timeScale = 1; }