Exemplo n.º 1
0
        private void DoTransition(Transition trnansition)
        {
            NodeDesigner toNode   = trnansition.ToNode;
            NodeDesigner fromNode = trnansition.FromNode;

            if (toNode != null && fromNode != null)
            {
                Color color = XBehaviorTreeEditorStyles.GetTransition(toNode);
                DrawConnection(fromNode.Rect.center, toNode.Rect.center, color, 1, false);
            }
        }
Exemplo n.º 2
0
        private void DoNode(NodeDesigner node, bool on)
        {
            GUIStyle style = XBehaviorTreeEditorStyles.GetNodeStyle(node);

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