I have a game that moves the player based on input.getTouch.
I also have a button that runs the pause. both work great. the problem is that when i hit the pause button it also calls the movement method. the pause method itself is working fine (all movement is stopping) but the same problem comes up when I unpause it. it will move towards the button since its calling both function of the pause button and the movement method.
how do it set it up so that when i hit the button it doesn’t also call the movement method.
*note - the pause button is in the canvas and is controlled with a different script called UIManager