Answer the question
In order to leave comments, you need to log in
How to pause the game if the game is connected with a mouse?
The problem is that through Time.timeScale all this is set. Objects in the game freeze, but since the gameplay itself is based on the rotation of the mouse and shooting on click, when the Canvas opens, the character continues to rotate in the direction of the mouse and can shoot. At the same time, the cartridge itself only spawns, and starts flying only after exiting the pause. How can this be bypassed?
Answer the question
In order to leave comments, you need to log in
Block this function with a script if it has access, or bring some element on top that will technically block the element below
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question