From d98ea1c45e0e80fe91fcc76a96ce3498d3650257 Mon Sep 17 00:00:00 2001 From: John Date: Mon, 3 Oct 2016 23:30:41 +0800 Subject: [PATCH] [unity] Remove unused BoundingBoxFollower field Closes issue: https://github.com/EsotericSoftware/spine-runtimes/issues/717 --- .../Modules/BoundingBoxFollower/BoundingBoxFollower.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spine-unity/Assets/spine-unity/Modules/BoundingBoxFollower/BoundingBoxFollower.cs b/spine-unity/Assets/spine-unity/Modules/BoundingBoxFollower/BoundingBoxFollower.cs index 38e1fce87..4efb3f985 100644 --- a/spine-unity/Assets/spine-unity/Modules/BoundingBoxFollower/BoundingBoxFollower.cs +++ b/spine-unity/Assets/spine-unity/Modules/BoundingBoxFollower/BoundingBoxFollower.cs @@ -47,7 +47,6 @@ namespace Spine.Unity { string currentAttachmentName; PolygonCollider2D currentCollider; - bool valid = false; bool hasReset; public readonly Dictionary colliderTable = new Dictionary(); @@ -128,7 +127,7 @@ namespace Spine.Unity { } #if UNITY_EDITOR - valid = colliderTable.Count != 0; + bool valid = colliderTable.Count != 0; if (!valid) { if (this.gameObject.activeInHierarchy) Debug.LogWarning("Bounding Box Follower not valid! Slot [" + slotName + "] does not contain any Bounding Box Attachments!");