From 87be93195b31246c3be8135fddc9beb4dc2fee3d Mon Sep 17 00:00:00 2001 From: bottlefish <781230111@qq.com> Date: Thu, 12 Dec 2024 21:48:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E6=AD=A7=E4=B9=89=E5=91=BD?= =?UTF-8?q?=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/Clue/ClueBaordNew.cs | 30 ++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Assets/Scripts/Clue/ClueBaordNew.cs b/Assets/Scripts/Clue/ClueBaordNew.cs index 67e4fe475..43c1b93cd 100644 --- a/Assets/Scripts/Clue/ClueBaordNew.cs +++ b/Assets/Scripts/Clue/ClueBaordNew.cs @@ -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) {