fix(DeleteLines): 修复无法删除连线的BUG
This commit is contained in:
@@ -39,9 +39,9 @@ namespace Script.Gameplay.Connect
|
|||||||
public void CutTargetConnectionLines(IConnectable target)
|
public void CutTargetConnectionLines(IConnectable target)
|
||||||
{
|
{
|
||||||
List<ConnectionLine> linesToRemove = new List<ConnectionLine>();
|
List<ConnectionLine> linesToRemove = new List<ConnectionLine>();
|
||||||
foreach (var line in connectionLines)
|
foreach (var line in target.ConnectionLines)
|
||||||
{
|
{
|
||||||
if (line != null && (line.Equals(target)))
|
if (line != null)
|
||||||
{
|
{
|
||||||
linesToRemove.Add(line);
|
linesToRemove.Add(line);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user