From 4737220e42378a14657b5c9a4d68a1ae669b1e9a Mon Sep 17 00:00:00 2001 From: GanX <2423855310@qq.com> Date: Tue, 21 Oct 2025 08:51:37 +0800 Subject: [PATCH] =?UTF-8?q?fix(DeleteLines):=20=E4=BF=AE=E5=A4=8D=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E5=88=A0=E9=99=A4=E8=BF=9E=E7=BA=BF=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Script/Gameplay/Connect/ConnectionLineManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Script/Gameplay/Connect/ConnectionLineManager.cs b/Assets/Script/Gameplay/Connect/ConnectionLineManager.cs index a56bc8c..3788223 100644 --- a/Assets/Script/Gameplay/Connect/ConnectionLineManager.cs +++ b/Assets/Script/Gameplay/Connect/ConnectionLineManager.cs @@ -39,9 +39,9 @@ namespace Script.Gameplay.Connect public void CutTargetConnectionLines(IConnectable target) { List linesToRemove = new List(); - foreach (var line in connectionLines) + foreach (var line in target.ConnectionLines) { - if (line != null && (line.Equals(target))) + if (line != null) { linesToRemove.Add(line); }