How About using something like this:
if( anim_Animator.GetCurrentAnimatorStateInfo(0).IsName("MyAnimationName"))
{
//Do something if this particular state is palying
}
This Function returns true when the string is the same as teh StateName you play currently.
Else false.
↧