chore(ConnectionManager):给提前配置连接添加错误提示

This commit is contained in:
2025-10-28 09:22:26 +08:00
parent 5e2b53a530
commit da4edb55a8

View File

@@ -72,11 +72,15 @@ namespace Script.Gameplay.Connect
IConnectable target = preConnection.target as IConnectable; IConnectable target = preConnection.target as IConnectable;
if (source != null && target != null) if (source != null && target != null)
{ {
GenerateConnectionLine(source, target); var connectionLine = GenerateConnectionLine(source, target);
if (connectionLine == null)
{
Debug.Log($"编号为{preConnection.PreConnectionID}的连接线存在重复连接,生成失败");
}
} }
else else
{ {
Debug.Log(preConnection.PreConnectionID + " connection failed to load."); Debug.Log($"编号为{preConnection.PreConnectionID}的连接线的配置错误,生成失败");
} }
} }
} }