Hey Guys,
I’m trying to wait for animation to be completed before doing the next action. I’ve tried a few things that haven’t worked.
private IEnumerator WaitForComplete()
{
Debug.Log("Not Done");
while (_anim.GetCurrentAnimatorStateInfo(0).IsName("SwordStart") && _anim.GetCurrentAnimatorStateInfo(0).normalizedTime < 1.0f)
{
yield return null;
}
Debug.Log("Done");
}