private void DoTransition(Transition trnansition) { NodeDesigner toNode = trnansition.ToNode; NodeDesigner fromNode = trnansition.FromNode; if (toNode != null && fromNode != null) { Color color = BehaviorTreeEditorStyles.GetTransition(toNode); DrawConnection(fromNode.Rect.center, toNode.Rect.center, color, 1, false); } }
private void DoNode(NodeDesigner node, bool on) { GUIStyle style = BehaviorTreeEditorStyles.GetNodeStyle(node); GUI.Box(node.Rect, node.NodeData.ClassType + ":" + node.NodeData.ID, style); }