Browse Source

删除多余代码

me66ccff 6 years ago
parent
commit
352d944d01

+ 3 - 3
Unity/Assets/Editor/ReferenceCollectorEditor/ReferenceCollectorEditor.cs

@@ -87,9 +87,9 @@ public class ReferenceCollectorEditor: Editor
 		{
 			GUILayout.BeginHorizontal();
             property = dataProperty.GetArrayElementAtIndex(i).FindPropertyRelative("key");
-            property.stringValue = EditorGUILayout.TextField(property.stringValue, GUILayout.Width(150));
+            EditorGUILayout.TextField(property.stringValue, GUILayout.Width(150));
             property = dataProperty.GetArrayElementAtIndex(i).FindPropertyRelative("gameObject");
-            property.objectReferenceValue = EditorGUILayout.ObjectField(property.objectReferenceValue, typeof(Object), true);
+            EditorGUILayout.ObjectField(property.objectReferenceValue, typeof(Object), true);
 			if (GUILayout.Button("X"))
 			{
 				delList.Add(i);
@@ -129,4 +129,4 @@ public class ReferenceCollectorEditor: Editor
 		element.FindPropertyRelative("key").stringValue = key;
 		element.FindPropertyRelative("gameObject").objectReferenceValue = obj;
 	}
-}
+}