From ae9429fa3e3a11b41d3372f1ad3eabd0b3eba98c Mon Sep 17 00:00:00 2001
From: Icarus <1375400884@qq.com>
Date: Fri, 29 Nov 2019 18:28:25 +0800
Subject: [PATCH] !TX
---
Scripts/Editor/NodeEditorWindow.cs | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/Scripts/Editor/NodeEditorWindow.cs b/Scripts/Editor/NodeEditorWindow.cs
index c5126e5..a1b222d 100644
--- a/Scripts/Editor/NodeEditorWindow.cs
+++ b/Scripts/Editor/NodeEditorWindow.cs
@@ -11,17 +11,12 @@ namespace XNodeEditor {
public bool Lock { get; private set; }
- [System.NonSerialized]
- GUIStyle lockButtonStyle;
-
///
/// Magic method which Unity detects automatically.
///
/// Position of button.
void ShowButton(Rect position) {
- if (lockButtonStyle == null)
- lockButtonStyle = "IN LockButton";
- Lock = GUI.Toggle(position, Lock, GUIContent.none, lockButtonStyle);
+ Lock = GUI.Toggle(position, Lock, GUIContent.none, "IN LockButton");
}
public void AddItemsToMenu(GenericMenu menu)