Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
        private void DoNode(NodeDesigner node, bool on)
        {
            GUIStyle style = BehaviorTreeEditorStyles.GetNodeStyle(node);

            GUI.Box(node.Rect, node.NodeData.ClassType + ":" + node.NodeData.Label, style);
        }