Hey,
I have a problem with animations. I have one animator controller and 4 animations.
I want to change animation randomly after I click mouse button.
I have one Integer parameter ‘whichFly’ and made condition in every transition.
When user click a mouse button I randomly choose in script which animation plays:
myAnimator.SetInteger ("whichFly", 11); // and so on
Animation changes good, but it stays in one single graphic frame.
This is my game object
Every animation plays fine only when I change Transition Duration to value greater than 0. But i want to change my animation immediately after user clicks a mouse.
Do you know what is my problem?
Thanks.