Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        private SelectorNode CreateSelectorNode(Vector2 mousePosition, Selector selector)
        {
            var selectorNode = new SelectorNode(selector, mousePosition, EditorConfig.GetDefaultNodeDimensions(), this);

            return(selectorNode);
        }