How can I play animation with the help of the animator once, wait until it ends playing and continue script code?
I am playing an animation with the help of the animator this way:
animator.SetBool(what, toAnimate);
I am starting my animation in that way:
rabit.animate("die", true);
I am making a transition to another animation this way:
rabit.animate("die", false);
I need to wait after step 1. before making step 2. so that animation plays. How can I do that?