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

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