We are experiencing some trouble with our Pause menu. We have the ESC key set to pause the game. When the player presses it, we set Time.TimeScale == 0, and so the game pauses and the menu GUI shows (we use NGUI). Our problem is that we don’t know how to get the ESC input again while paused to unpause the game, since the time of the game is set to zero and there isn’t any kind of Update at all. Our problem is that the key Input is still detected, and so if we set the key to be Input.GetButton or Input.GetKey, the game pauses and unpauses instantly since that input is detected multiple times. We can’t put it with GetButtonDown or GetKeyDown since then it does not work quite well when paused, so we though about setting some timer before the ESC key was ready to work again but since TimeScale is 0 that doesn’t work.
Is there any valid solution to this issue? It seems like a very trivial problem but we’re stuck right now.