override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex) { if (iKHTScript == null) { iKHTScript = animator.GetComponent <IKHelperTool>(); } if (iKHTScript != null) { iKHTScript.StartSequence(id, goal, iKSequence, smoothEntry, isLoop); } }
// OnStateEnter is called when a transition starts and the state machine starts to evaluate this state override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex) { if (iKHTScript == null) { iKHTScript = animator.GetComponent <IKHelperTool>(); } if (iKHTScript != null) { iKHTScript.ClearIK(clearAll, id, delay, smoothExit, speed); } }
override public void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex) { if (iKHTScript == null) { iKHTScript = animator.GetComponent <IKHelperTool>(); } if (iKHTScript != null) { if (defaultState && defaultCount == -1) { defaultCount = 0; iKHTScript.StartSingleIK(id, goal, false, speed); } else { iKHTScript.StartSingleIK(id, goal, smoothEntry, speed); } } }