I have a problem with a custom pause menu i have made.
When i press 'P' pause should initiate, stop all Objects from moving, and bring up the Pause Menu.
When i left-click the 'RESUME GAME' button, all Objects should stop moving and the Pause menu should disapear.
This generally works, but if you press the 'P' Key and hit the Resume Button at the same time, the game doesnt pause although technicaly the Pause Menu should be there.
I have attached a short and simple illustration of the problme.
Could someone pleace take a look at it and see if they can find out whats wrong?
Or is this a bug i have no controll over?