When you press "p" make System -> Set time scale to 0 (that pauses the game)
Thats it. Setting it back to 1.0 resumes your game.i,
Ok, I understand that.
I would also like to display "PAUSED" text when game is paused.
I've setup a "PAUSED" text, set it to be invisible at game start,
and gave it a variable "GameIsPaused" which is set initially to false.
How would I toggle the display of above "PAUSED" text?