protected internal override void ClearConnection() { if (connection == null) { return; } var temp = connection; connection = null; temp.ClearConnection(); }
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); }
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; }
public NodeFlowOutKnob CreateFlowOutKnob(string cotName = "出", float offset = 20) { return(NodeFlowOutKnob.Create(this, cotName, offset)); }