浏览代码

fix unit test

/release-0.15.0
Chris Elion 5 年前
当前提交
40c48565
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
      com.unity.ml-agents/Tests/Editor/PublicAPI/PublicApiValidation.cs

2
com.unity.ml-agents/Tests/Editor/PublicAPI/PublicApiValidation.cs


var agent = gameObject.AddComponent<PublicApiAgent>();
// Make sure we can set the behavior type correctly after the agent is added
behaviorParams.behaviorType = BehaviorType.InferenceOnly;
// Can't actually create an Agent with InferenceOnly and no model, so change back
behaviorParams.behaviorType = BehaviorType.Default;
// TODO - not internal yet
// var decisionRequester = gameObject.AddComponent<DecisionRequester>();

正在加载...
取消
保存