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; }
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); }