how to check if animation ended unity code example
Example: unity detect if animation is playing
if(this.GetComponent<Animator>().GetCurrentAnimatorStateInfo(0).normalizedTime >= 1)
{
//Do something when animator isn't playing
{
if(this.GetComponent<Animator>().GetCurrentAnimatorStateInfo(0).normalizedTime >= 1)
{
//Do something when animator isn't playing
{