diff options
author | chai <chaifix@163.com> | 2022-07-04 20:57:13 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2022-07-04 20:57:13 +0800 |
commit | 7adcecd82e552ad6c03607ef5074fc6a8fa46671 (patch) | |
tree | a9c7be1f20427f6a2e9da8d9e5f71b1ca6b7092e /Other/NodeEditorExamples/Assets/xNode-examples/Examples/StateMachine | |
parent | 6cd1b99d4ab9866f00ec0b197ed9686f7d1cea46 (diff) |
* node test
Diffstat (limited to 'Other/NodeEditorExamples/Assets/xNode-examples/Examples/StateMachine')
2 files changed, 4 insertions, 4 deletions
diff --git a/Other/NodeEditorExamples/Assets/xNode-examples/Examples/StateMachine/New State Graph.asset b/Other/NodeEditorExamples/Assets/xNode-examples/Examples/StateMachine/New State Graph.asset index 00465c33..d475d3f7 100644 --- a/Other/NodeEditorExamples/Assets/xNode-examples/Examples/StateMachine/New State Graph.asset +++ b/Other/NodeEditorExamples/Assets/xNode-examples/Examples/StateMachine/New State Graph.asset @@ -112,7 +112,7 @@ MonoBehaviour: m_Name: State Node m_EditorClassIdentifier: graph: {fileID: 11400000} - position: {x: -296, y: -328} + position: {x: -312, y: -376} ports: keys: - enter diff --git a/Other/NodeEditorExamples/Assets/xNode-examples/Examples/StateMachine/Nodes/Editor/StateNodeEditor.cs b/Other/NodeEditorExamples/Assets/xNode-examples/Examples/StateMachine/Nodes/Editor/StateNodeEditor.cs index f9d6b9eb..6ce01956 100644 --- a/Other/NodeEditorExamples/Assets/xNode-examples/Examples/StateMachine/Nodes/Editor/StateNodeEditor.cs +++ b/Other/NodeEditorExamples/Assets/xNode-examples/Examples/StateMachine/Nodes/Editor/StateNodeEditor.cs @@ -8,7 +8,7 @@ namespace XNodeEditor.Examples { [CustomNodeEditor(typeof(StateNode))] public class StateNodeEditor : NodeEditor { - public override void OnHeaderGUI() { + public override void OnHeaderGUI() {
GUI.color = Color.white; StateNode node = target as StateNode; StateGraph graph = node.graph as StateGraph; @@ -19,8 +19,8 @@ namespace XNodeEditor.Examples { } public override void OnBodyGUI() { - base.OnBodyGUI(); - StateNode node = target as StateNode; + base.OnBodyGUI();
+ StateNode node = target as StateNode; StateGraph graph = node.graph as StateGraph; if (GUILayout.Button("MoveNext Node")) node.MoveNext(); if (GUILayout.Button("Continue Graph")) graph.Continue(); |