I am trying to transition from one animation to a second animation, but it seems that the transition is reading the variable fast enough. My first animation will play once, and waits until the condition is true to move onto the next animation. However, once I set the necessary bool to true, there is a slight delay when going into the next animation.
Here’s some of the code that I’m using:
public class bowLogic : MonoBehaviour {
Animator ac;
int clickDown;
// Use this for initialization
void Start () {
ac = GetComponent<Animator> ();
clickDown = Animator.StringToHash ("clickDown");
}
// Update is called once per frame
void Update () {
if (Input.GetMouseButton (0)) {
ac.SetBool (clickDown, true);
}
if (Input.GetMouseButtonUp (0)) {
ac.SetBool (clickDown, false);
}
}
Once the mouse is held down I want it to transition to the second animation once the first one is done. The transition is instant when you hold down the mouse during the first animation, but if the first animation is done playing and is waiting on the last frame, clicking the button doesn’t instantly transition but holding it for a few tenths of a second does.

