Hello.
i have 2 animations in loop mode, and i want to switch from one to other, after a time that i have chosen in the inspector before play (i created a variable that can be change in number of seconds). I just want that after this seconds, the second animation play but first wait that the other animation finish to play her last cycle until end.
The first animation is 5 seconds long. If i choose that after 6 seconds, the animation must switch, the first animation as begining a second cycle and i want that it finish before playing the second animation…
i looked overall in unity script reference and i didn’t find a call like:
if (animation.lastFrame(“Animation1”){
animation.Play(“Animation2”)…
can somebody help me?