resolveSK2D() 공개 메소드

public resolveSK2D ( ) : void
리턴 void
예제 #1
0
    private void EditorUpdate()
    {
        foreach (Bone b in gameObject.GetComponentsInChildren <Bone>())
        {
            InverseKinematics ik = b.GetComponent <InverseKinematics>();

            if (ik != null && !editMode && ik.enabled && ik.influence > 0)
            {
                ik.resolveSK2D();
            }
        }
    }
    private void EditorUpdate()
    {
        if (bones != null)
        {
            for (int i = 0; i < bones.Length; i++)
            {
                if (bones[i] != null)
                {
                    InverseKinematics ik = bones[i].GetComponent <InverseKinematics>();

                    if (ik != null && !editMode && ik.enabled && ik.influence > 0)
                    {
                        ik.resolveSK2D();
                    }
                }
            }
        }
    }