You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

11 lines
369 B

using UnityEngine;
public class StateMachineFunctions : StateMachineBehaviour {
public bool NotifyAnimatorOnFinish;
//notify on animation finish
override public void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex) {
if(NotifyAnimatorOnFinish) animator.gameObject.SendMessage ("Ready", SendMessageOptions.DontRequireReceiver);
}
}