Exemplo n.º 1
0
        public Connector Init(WordNodeEditorWindow window, NodeBase node, ConnectorData data)
        {
            _window = window;
            _node   = node;
            _data   = data;

            _rect = new Rect(0, 0, 20, 20);

            return(this);
        }
Exemplo n.º 2
0
        public void Init(WordNodeEditorWindow window, NodeDataBase data)
        {
            _window = window;
            _data   = data;

            _movingNode = false;
            _rect       = new Rect(0, 0, 96, 96);

            InitConnectors();
            ChildInit();
        }
Exemplo n.º 3
0
        public PropertyArea Init(WordNodeEditorWindow window)
        {
            _window = window;

            _functionView = ScriptableObject.CreateInstance <CommonFunctionView>().Init(_window);

            _propertyView      = new Dictionary <NodeType, PropertyViewBase>();
            _emptyPropertyView = ScriptableObject.CreateInstance <EmptyPropertyView>();

            return(this);
        }
Exemplo n.º 4
0
        public void Init(WordNodeEditorWindow window)
        {
            _window = window;

            _nodes = new List <NodeBase>();
            _idMap = new Dictionary <int, NodeBase>();

            _zoom       = 1;
            _zoomTarget = 1;
            _offset     = new Vector2(32768 - 400, 32768 - 300);

            _movingCam = false;

            InitAddMenu();
        }
Exemplo n.º 5
0
 void OnDisabled()
 {
     _instance = null;
 }
Exemplo n.º 6
0
 void OnEnabled()
 {
     _instance = this;
 }
Exemplo n.º 7
0
 public void Init(WordNodeEditorWindow window)
 {
     _window = window;
 }
Exemplo n.º 8
0
 public CommonFunctionView Init(WordNodeEditorWindow window)
 {
     _window = window;
     return(this);
 }