浏览代码

Add team manager to collab pushblock

/develop/cc-teammanager
Ervin Teng 4 年前
当前提交
dbfe9c25
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5
      Project/Assets/ML-Agents/Examples/PushBlock/Scripts/PushBlockEnvController.cs

5
Project/Assets/ML-Agents/Examples/PushBlock/Scripts/PushBlockEnvController.cs


private int m_NumberOfRemainingBlocks;
private PushBlockTeamManager m_TeamManager;
void Start()
{

item.StartingRot = item.T.transform.rotation;
item.Rb = item.T.GetComponent<Rigidbody>();
}
// Initialize TeamManager
m_TeamManager = new PushBlockTeamManager();
item.Agent.SetTeamManager(m_TeamManager);
}
ResetScene();

正在加载...
取消
保存