Check out example codes for "unity wait for animation to finish". It will help you in understanding the concepts better.

Code Example 1

//if animation with name "Attack" finished

if (anim.GetCurrentAnimatorStateInfo(0).IsName("Attack"))
{
	//do something
}

Learn ReactJs, React Native from akashmittal.com