浏览代码

Use Debug.AssertFormat for string lazy string formatting in debug builds. (#4877)

/MLA-1734-demo-provider
GitHub 4 年前
当前提交
cfdc7119
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 7
      com.unity.ml-agents/Runtime/Actuators/ActuatorManager.cs

7
com.unity.ml-agents/Runtime/Actuators/ActuatorManager.cs


}
else
{
Debug.Assert(sourceActionBuffer.Length == destination.Length,
$"sourceActionBuffer:{sourceActionBuffer.Length} is a different" +
$" size than destination: {destination.Length}.");
Debug.AssertFormat(sourceActionBuffer.Length == destination.Length,
"sourceActionBuffer: {0} is a different size than destination: {1}.",
sourceActionBuffer.Length,
destination.Length);
Array.Copy(sourceActionBuffer.Array,
sourceActionBuffer.Offset,

正在加载...
取消
保存