chore(ConnectionManager):给提前配置连接添加错误提示
This commit is contained in:
@@ -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}的连接线的配置错误,生成失败");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user