Im new in unity. i dunno how to run the 2nd animation after the first animation is done.
for example; when we press button on mouse, animation will raised flag(1st animation). after lifting the flag, he will wiggle the flag(2nd animation).
if (Input.GetMouseButtonDown (0)) {
anim.SetInteger ("State", 1); //after this animation is done(raised flag is done)
anim.SetInteger ("State", 2); //run this animation(wiggle the flag)
}
Sorry for my bad english. and thanks before