Exemple #1
0
 override public void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
 {
     if (clearOnExit)
     {
         if (iKHTScript != null)
         {
             iKHTScript.ClearIK(false, id, 0, false, 0);
         }
     }
 }
        // 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);
            }
        }