浏览代码

formatting

/bug-failed-api-check
Chris Elion 5 年前
当前提交
ddec91cd
共有 3 个文件被更改,包括 2 次插入3 次删除
  1. 2
      com.unity.ml-agents/Editor/BehaviorParametersEditor.cs
  2. 1
      com.unity.ml-agents/Runtime/Agent.cs
  3. 2
      com.unity.ml-agents/Tests/Editor/MLAgentsEditModeTest.cs

2
com.unity.ml-agents/Editor/BehaviorParametersEditor.cs


behaviorParameters.model,
behaviorParameters.inferenceDevice,
true
);
);
}
if (behaviorTypeChanged)

1
com.unity.ml-agents/Runtime/Agent.cs


{
throw new UnityAgentsException("Call to SendInfoToBrain when Agent hasn't been initialized." +
"Please ensure that you are calling 'base.OnEnable()' if you have overridden OnEnable.");
}
if (m_Brain == null)

2
com.unity.ml-agents/Tests/Editor/MLAgentsEditModeTest.cs


internal IPolicy GetPolicy()
{
return (IPolicy) typeof(Agent).GetField("m_Brain", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(this);
return (IPolicy)typeof(Agent).GetField("m_Brain", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(this);
}
public int initializeAgentCalls;

正在加载...
取消
保存