H
H
Help_programmer2021-10-22 19:26:25
Unity
Help_programmer, 2021-10-22 19:26:25

Unity Animatsaya starts from the 2nd (second) time?

Hello everybody. I ran into a very strange problem.
Created a button and an image. Made a script. By clicking on the button, the image from above will fly out (animation).
But the problem is that the animation starts working when I click the button for the second time.
And in fact, it should immediately.
If someone faced this problem and fixed it or knows a solution, please tell me.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
knime, 2021-10-23
@knime

It would be worth checking the code. Let's say if you use a variable of type int \ bool, count how many times you need to click to run

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question