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}的连接线的配置错误,生成失败"); } } }