diff options
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(); |