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