public void CreateActionNode(Vector2 mousePosition, Type type) { var action = Activator.CreateInstance(type) as ActionBase; var actionNode = new ActionNode(action, mousePosition, EditorConfig.GetDefaultNodeDimensions()); nodes.Add(actionNode); actionNodes.Add(actionNode); Signals.Get <AddAction>().Dispatch(mousePosition, action); }
private SelectorNode CreateSelectorNode(Vector2 mousePosition, Selector selector) { var selectorNode = new SelectorNode(selector, mousePosition, EditorConfig.GetDefaultNodeDimensions(), this); return(selectorNode); }