浏览代码

Fix respawn part of BananaLogic (#2277)

Fix the bug of "respawn" part that cause all the banana respawn in the first Area.
/develop-generalizationTraining-TrainerController
Ervin T 6 年前
当前提交
b4675aa0
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      UnitySDK/Assets/ML-Agents/Examples/BananaCollectors/Scripts/BananaLogic.cs

4
UnitySDK/Assets/ML-Agents/Examples/BananaCollectors/Scripts/BananaLogic.cs


if (respawn)
{
transform.position = new Vector3(Random.Range(-myArea.range, myArea.range),
transform.position.y + 3f,
Random.Range(-myArea.range, myArea.range));
3f,
Random.Range(-myArea.range, myArea.range)) + myArea.transform.position;
}
else
{

正在加载...
取消
保存