浏览代码

[unity] Remove unused BoundingBoxFollower field

Closes issue: https://github.com/EsotericSoftware/spine-runtimes/issues/717
John 9 年之前
父节点
当前提交
d98ea1c45e
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      spine-unity/Assets/spine-unity/Modules/BoundingBoxFollower/BoundingBoxFollower.cs

+ 1 - 2
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<BoundingBoxAttachment, PolygonCollider2D> colliderTable = new Dictionary<BoundingBoxAttachment, PolygonCollider2D>();
@@ -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!");