I have this script attached to my project. It's working but not fully. When i've paused the game once then unpaused it, It cannot be turned on and off again. Is there any way to make this script work permanently?
Would be great with a quick answer, Up-Vote awaits! :)
Once pauseToggle is true, you're never unsetting it! You want to flip the pauseToggle boolean every time KeyCode.Escape is pressed, so move it out of the ifcheck for whether or not it's already paused.
answered Apr 02 '11 at 02:04 AM