Skip to content

Commit 37913cb

Browse files
committed
Condition Nodes
1 parent 725f4b3 commit 37913cb

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using Coffee.Behaviour.Nodes.DecoratorNodes;
2+
using XNodeEditor;
3+
4+
namespace Coffee.Behaviour.Nodes.LeafNodes
5+
{
6+
[NodeEditor.CustomNodeEditorAttribute(typeof(ConditionNode))]
7+
public class ConditionNodeEditor : NodeEditor
8+
{
9+
public override int GetWidth() {
10+
return 350;
11+
}
12+
}
13+
}

BehaviourGraph/Nodes/DecoratorNodes/NodeEditor/ConditionNodeEditor.cs.meta

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Examples/New Behaviour Graph.asset

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ MonoBehaviour:
114114
m_Name: ChasePlayer
115115
m_EditorClassIdentifier:
116116
graph: {fileID: 11400000}
117-
position: {x: 856, y: -24}
117+
position: {x: 1000, y: -24}
118118
ports:
119119
keys:
120120
- parents
@@ -186,7 +186,7 @@ MonoBehaviour:
186186
m_Name: ColorRed
187187
m_EditorClassIdentifier:
188188
graph: {fileID: 11400000}
189-
position: {x: 856, y: -120}
189+
position: {x: 1016, y: -136}
190190
ports:
191191
keys:
192192
- parents
@@ -658,7 +658,7 @@ MonoBehaviour:
658658
m_Name: MoveToWaypoint
659659
m_EditorClassIdentifier:
660660
graph: {fileID: 11400000}
661-
position: {x: 856, y: 328}
661+
position: {x: 1016, y: 328}
662662
ports:
663663
keys:
664664
- parents
@@ -727,7 +727,7 @@ MonoBehaviour:
727727
m_Name: Sequencer
728728
m_EditorClassIdentifier:
729729
graph: {fileID: 11400000}
730-
position: {x: 600, y: -40}
730+
position: {x: 760, y: -56}
731731
ports:
732732
keys:
733733
- parents

0 commit comments

Comments
 (0)