diff --git a/spine-csharp/src/Skeleton.cs b/spine-csharp/src/Skeleton.cs index 03a04004d..047917931 100644 --- a/spine-csharp/src/Skeleton.cs +++ b/spine-csharp/src/Skeleton.cs @@ -164,7 +164,7 @@ namespace Spine { for (int i = 0, n = pathConstraints.Count; i < n; i++) { PathConstraint constraint = pathConstraints.Items[i]; - Slot slot = constraint.Target; + Slot slot = constraint.target; int slotIndex = slot.data.index; Bone slotBone = slot.bone; if (skin != null) SortPathConstraintAttachment(skin, slotIndex, slotBone); @@ -249,9 +249,9 @@ namespace Spine { /// Updates the world transform for each bone and applies constraints. public void UpdateWorldTransform () { - var updateCache = this.updateCache; + var updateItems = this.updateCache.Items; for (int i = 0, n = updateCache.Count; i < n; i++) - updateCache.Items[i].Update(); + updateItems[i].Update(); } /// Sets the bones, constraints, and slots to their setup pose values. @@ -283,9 +283,9 @@ namespace Spine { constraint.shearMix = data.shearMix; } - var pathConstraints = this.pathConstraints; + var pathConstraintItems = this.pathConstraints.Items; for (int i = 0, n = pathConstraints.Count; i < n; i++) { - PathConstraint constraint = pathConstraints.Items[i]; + PathConstraint constraint = pathConstraintItems[i]; PathConstraintData data = constraint.data; constraint.position = data.position; constraint.spacing = data.spacing;