Example #1
0
        protected internal override void ClearConnection()
        {
            if (connection == null)
            {
                return;
            }
            var temp = connection;

            connection = null;
            temp.ClearConnection();
        }
Example #2
0
        public static NodeFlowOutKnob Create(Node nodeBody, string cotName, float offset)
        {
            NodeFlowOutKnob flowOut = CreateInstance <NodeFlowOutKnob>();

#if UNITY_EDITOR
            Undo.RegisterCreatedObjectUndo(flowOut, "Create Node");
#endif
            flowOut.CotName = cotName;
            flowOut.Init(nodeBody, "FlowOut", Side.Right, offset);
            nodeBody.FlowOut = flowOut;
            return(flowOut);
        }
Example #3
0
 public override void Linking(NodeKnob other)
 {
     base.Linking(other);
     if (other.GetType() != typeof(NodeFlowOutKnob))
     {
         return;
     }
     other.ClearConnection();
     ClearConnection();
     connection = other as NodeFlowOutKnob;
     (other as NodeFlowOutKnob).connection = this;
 }
Example #4
0
 public NodeFlowOutKnob CreateFlowOutKnob(string cotName = "出", float offset = 20)
 {
     return(NodeFlowOutKnob.Create(this, cotName, offset));
 }