Пример #1
0
        public virtual ConnectionPort CreateNew(Node body)
        {
            ConnectionPort port = ScriptableObject.CreateInstance <ConnectionPort> ();

            port.Init(body, Name);
            port.direction          = Direction;
            port.styleID            = StyleID;
            port.maxConnectionCount = MaxConnectionCount;
            return(port);
        }
Пример #2
0
        public virtual ConnectionPort CreateNew(Node body)
        {
            ConnectionPort port = ScriptableObject.CreateInstance <ConnectionPort>();

            port.Init(body, Name);
            port.direction          = Direction;
            port.styleID            = StyleID;
            port.maxConnectionCount = MaxConnectionCount;
            NodeEditorSaveManager.AddSubAsset(port, body);
            return(port);
        }