Esempio n. 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);
        }
Esempio n. 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);
        }