comend for pausing

quick question what is the commend for pausing the game i look evry where but i just cant fiend a simple pause and play comend (is there eaven 1) i would just like the line/comend for pausing and then anpausing/playing the game in this function

function OnMouseDown () {

//here i would like something like pause game or what ever is comend for pausing the game


i hope some 1 can help me tnhank you.

You probably didn’t search accurately, here is:

Time.timeScale = 0; // Pause
Time.timeScale = 1; // Unpause