コード例 #1
0
        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);
            }
        }
コード例 #2
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);
            }
        }
コード例 #3
0
        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);
                }
            }
        }