Ejemplo n.º 1
0
    private void DecisionNodeEditing(HamDecisionNode node)
    {
        GUILayout.Label("Decision Node", Style("SubTitle"));

        GUILayout.BeginVertical();
        for (int i = 0; i < node.Decisions.Count; ++i)
        {
            DecisionEditing(node, i);
        }
        GUILayout.BeginHorizontal(Style("box"));
        if (GUILayout.Button("Add Decision", Style("FlexButton")))
        {
            node.AddDecision("New Decision", false);
        }
        GUILayout.EndHorizontal();
        GUILayout.EndVertical();
    }