예제 #1
0
 public CcNode(BGCcTreeView tree, CcData ccData, Action <Type> typeWasChosenAction)
     : base(tree)
 {
     this.ccData = ccData;
     this.typeWasChosenAction = typeWasChosenAction;
     singleAndAdded           = ccData.Single && tree.Curve.GetComponent(ccData.Type) != null;
 }
예제 #2
0
        internal static void Open(BGCurve curve, Action <Type> action, Type dependsOnType = null, bool ignoreExcludeFromMenuAttribute = false)
        {
            tree = new BGCcTreeView(curve, dependsOnType, ignoreExcludeFromMenuAttribute, Message, type =>
            {
                action(type);
                instance.Close();
            });

            instance = BGEditorUtility.ShowPopupWindow <BGCcAddWindow>(WindowSize);
        }