Quantcast
Viewing latest article 1
Browse Latest Browse All 4

Answer by jwinn

Check out the latest Mecanim tutorial download, which has changed code since the beta. I was just dealing with integrating all the mecanim animator changes today. Here's an example of how they set it up. This is assuming your base layer is named "Base": static int atakState = Animator.StringToHash("Base.Atak1"); void Start (){ anim = GetComponent(); } void FixedUpdate () { currentBaseState = anim.GetCurrentAnimatorStateInfo(0); if (currentBaseState.nameHash == atakState){ Debug.Log("Do Stuff Here"); } }

Viewing latest article 1
Browse Latest Browse All 4

Trending Articles