From da4edb55a8d4da49709c2b757447a6ab19ec6dff Mon Sep 17 00:00:00 2001 From: GanX <2423855310@qq.com> Date: Tue, 28 Oct 2025 09:22:26 +0800 Subject: [PATCH] =?UTF-8?q?chore(ConnectionManager):=E7=BB=99=E6=8F=90?= =?UTF-8?q?=E5=89=8D=E9=85=8D=E7=BD=AE=E8=BF=9E=E6=8E=A5=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Script/Gameplay/Connect/ConnectionLineManager.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Assets/Script/Gameplay/Connect/ConnectionLineManager.cs b/Assets/Script/Gameplay/Connect/ConnectionLineManager.cs index 464ecd7..cebd62e 100644 --- a/Assets/Script/Gameplay/Connect/ConnectionLineManager.cs +++ b/Assets/Script/Gameplay/Connect/ConnectionLineManager.cs @@ -72,11 +72,15 @@ namespace Script.Gameplay.Connect IConnectable target = preConnection.target as IConnectable; if (source != null && target != null) { - GenerateConnectionLine(source, target); + var connectionLine = GenerateConnectionLine(source, target); + if (connectionLine == null) + { + Debug.Log($"编号为{preConnection.PreConnectionID}的连接线存在重复连接,生成失败"); + } } else { - Debug.Log(preConnection.PreConnectionID + " connection failed to load."); + Debug.Log($"编号为{preConnection.PreConnectionID}的连接线的配置错误,生成失败"); } } }