K
K
KraGen.Developer2021-11-12 17:52:02
Unity
KraGen.Developer, 2021-11-12 17:52:02

How to make a zone in which the wheelbarrows will be read?

In general, I'm making a game and a funny bug appeared when I click on the pause button, then the game type is put on the groove, namely through Time.timeScale = 0; and while touching the screen, the character bounces and, in general, when I press the button, it registers touches, but the game is paused, so the player does not jump, and when I exit the pause, the player jumps and this is not at all in the subject of tobish is not necessary. Essence of the question: How to make it so that the tachi would be read only from a certain zone? * For example, from the panel?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2021-11-12
@KraGenDeveloper

Well, in general, timeScale is not for a pause. You will fall off a lot of things because of this (animations, for example).
And your question must be inverted - i.e. ban cars where it is not necessary. This is done in different ways. For example, a transparent button is stretched over the entire screen, and a panel is already made on top of it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question