去除歧义命令

This commit is contained in:
2024-12-12 21:48:51 +08:00
parent c7ff350c32
commit 87be93195b
+15 -15
View File
@@ -225,21 +225,21 @@ public void NodeInit(string nodeID,bool isactive)
currentConnection.line.color=Color.red;
}
[YarnCommand("AddNodeConnection")]
public void CreateConnection(string starNode,int startPort,string endNode,int endPort)
{
Node start= GetNode(starNode);
Node end= GetNode(endNode);
Connection newConnection=start.ports[startPort].ConnectTo(end.ports[endPort]);
newConnection.DisableClick=false;
newConnection.EnableDrag=false;
gm.UnselectAllElements();
newConnection.DisableClick=false;
newConnection.EnableDrag=false;
newConnection.EnableHover=false;
newConnection.line.color=Color.green;
//currentConnection=null;
}
// [YarnCommand("AddNodeConnection")]
// public void CreateConnection(string starNode,int startPort,string endNode,int endPort)
// {
// Node start= GetNode(starNode);
// Node end= GetNode(endNode);
// Connection newConnection=start.ports[startPort].ConnectTo(end.ports[endPort]);
// newConnection.DisableClick=false;
// newConnection.EnableDrag=false;
// gm.UnselectAllElements();
// newConnection.DisableClick=false;
// newConnection.EnableDrag=false;
// newConnection.EnableHover=false;
// newConnection.line.color=Color.green;
// //currentConnection=null;
// }
[YarnCommand("EnableQuestion")]
public void EnableQuestion(string nodeID)
{