Using Xbox controller "confirm" button to close a pause menu also jumps when game play resumes

I am using an Xbox controller to pause and resume a game. However, when I use the confirm button (which is mapped to the A button) it immediately jumps when the pause panel is set inactive and time resumes.

Do I need to somehow disable the ability to jump within the character script while the game is paused, or is there a better way to handle the actions within my pause menu?

Thanks!
Nick

1 Like

Exactly. Make it so you can’t jump. Then at the end of your unpause ,method, set the flag back to canJump = true.

Thanks!