|
I am in the process of releasing an update for my game. I'm trying to make a pause menu, but it is not working like I would really prefer it to. The problem isn't game-breaking, but it is a pain. Basically, when pause is activated by pressing escape, the timescale is set to 0, so everything stops. BUT, if the player keeps spamming the escape key, the time stutters forward. Here is my code:
Attach this script to a first person controller prefab and try it out for yourself. Any kind of solution would be appreciated. If you want to actually play the game that I'm working on (and see if the pause menu update was finished), go here: http://www.kongregate.com/games/Xedfire/island-jumper
(comments are locked)
|
|
You could try using WaitForSeconds(variable); ^this will pause time for a bit i guess http://docs.unity3d.com/Documentation/ScriptReference/WaitForSeconds.html
(comments are locked)
|
