Exemple #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);
        }
Exemple #2
0
        public void Init(WordNodeEditorWindow window, NodeDataBase data)
        {
            _window = window;
            _data   = data;

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

            InitConnectors();
            ChildInit();
        }
Exemple #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);
        }
Exemple #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();
        }
 void OnDisabled()
 {
     _instance = null;
 }
 void OnEnabled()
 {
     _instance = this;
 }
 public void Init(WordNodeEditorWindow window)
 {
     _window = window;
 }
Exemple #8
0
 public CommonFunctionView Init(WordNodeEditorWindow window)
 {
     _window = window;
     return(this);
 }