浏览代码

Fix broken code (#2091)

/develop-generalizationTraining-TrainerController
Vincent(Yuan) Gao 6 年前
当前提交
41b8e472
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      UnitySDK/Assets/ML-Agents/Scripts/DemonstrationRecorder.cs

4
UnitySDK/Assets/ML-Agents/Scripts/DemonstrationRecorder.cs


private Agent recordingAgent;
private string filePath;
private DemonstrationStore demoStore;
public const int MAX_NAME_LENGTH = 16;
public const int MaxNameLength = 16;
private void Start()
{

{
recordingAgent = GetComponent<Agent>();
demoStore = new DemonstrationStore();
demonstrationName = SanitizeName(demonstrationName);
demonstrationName = SanitizeName(demonstrationName, MaxNameLength);
demoStore.Initialize(
demonstrationName,
recordingAgent.brain.brainParameters,

正在加载...
取消
保存