protected CheckboxNodeView AddCheckbox(string name, bool isOn, CheckboxNodeView.Callback callback, string id, Node parentNode) { if (parentNode == null) { parentNode = _rootNode; } CheckboxNodeView node = new CheckboxNodeView(); node.name = name; node.isOn = isOn; node.id = id; node.callback = callback; parentNode.AddNode(node); return(node); }
protected CheckboxNodeView AddCheckbox(string name, bool isOn, CheckboxNodeView.Callback callback, Node parentNode) { return(AddCheckbox(name, isOn, callback, string.Empty, parentNode)); }