Problems with Inputs

Hi!

I do a jump game. All works fine with a exception. I put a pause button (UI button in a panel) and when press the pause button before pause game, the player jump because the player jumps with the input.getmouse(0).

How should I solve this problem?

You could just change the player jump key/button to space or something?
Or if you really want the player to jump with mouse button 0 you could write and if statement in Update(), something along the lines of:

if (Input.GetMouseButtonDown (0) && UI_BUTTON){
    Don't run Jump script
}

Sorry I can’t be of more help, not a master of C# or Unity if you can’t tell xD