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(); } } } } }