浏览代码

Randomize goal in gridworld

/goal-conditioning/new
Arthur Juliani 4 年前
当前提交
41d8b3e0
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
      Project/Assets/ML-Agents/Examples/GridWorld/Scripts/GridAgent.cs

2
Project/Assets/ML-Agents/Examples/GridWorld/Scripts/GridAgent.cs


public override void OnEpisodeBegin()
{
area.AreaReset();
Array values = Enum.GetValues(typeof(GridGoal));
gridGoal = (GridGoal)values.GetValue(UnityEngine.Random.Range(0, values.Length));
}
public void FixedUpdate()

正在加载...
取消
保存