//if animation with name "Attack" finished if (anim.GetCurrentAnimatorStateInfo(0).IsName("Attack")) { //do something }