diff --git a/spine-unity/Assets/spine-unity/BoneFollower.cs b/spine-unity/Assets/spine-unity/BoneFollower.cs index c9c7746c9..2681c4ff2 100644 --- a/spine-unity/Assets/spine-unity/BoneFollower.cs +++ b/spine-unity/Assets/spine-unity/BoneFollower.cs @@ -74,7 +74,7 @@ namespace Spine.Unity { /// /// Sets the target bone by its bone name. Returns false if no bone was found. - public bool SetBoneByName (string name) { + public bool SetBone (string name) { bone = skeletonRenderer.skeleton.FindBone(name); if (bone == null) { Debug.LogError("Bone not found: " + name, this); @@ -130,7 +130,7 @@ namespace Spine.Unity { if (bone == null) { if (string.IsNullOrEmpty(boneName)) return; bone = skeletonRenderer.skeleton.FindBone(boneName); - if (!SetBoneByName(boneName)) return; + if (!SetBone(boneName)) return; } Transform thisTransform = this.transform; diff --git a/spine-unity/Assets/spine-unity/Modules/BoundingBoxFollower/Editor/BoundingBoxFollowerInspector.cs b/spine-unity/Assets/spine-unity/Modules/BoundingBoxFollower/Editor/BoundingBoxFollowerInspector.cs index f00f3cb3c..8d340d2f3 100644 --- a/spine-unity/Assets/spine-unity/Modules/BoundingBoxFollower/Editor/BoundingBoxFollowerInspector.cs +++ b/spine-unity/Assets/spine-unity/Modules/BoundingBoxFollower/Editor/BoundingBoxFollowerInspector.cs @@ -156,7 +156,7 @@ namespace Spine.Unity.Editor { if (Event.current.type == EventType.Repaint) { if (addBoneFollower) { var boneFollower = follower.gameObject.AddComponent(); - boneFollower.SetBoneByName(follower.Slot.Data.BoneData.Name); + boneFollower.SetBone(follower.Slot.Data.BoneData.Name); addBoneFollower = false; }