浏览代码

fixes due to change in master

/asymm-envs
Andrew Cohen 5 年前
当前提交
efdf8cdf
共有 3 个文件被更改,包括 5 次插入3 次删除
  1. 2
      Project/Assets/ML-Agents/Examples/CubeWars/Scripts/CubeWarSettings.cs
  2. 4
      Project/Assets/ML-Agents/Examples/CubeWars/Scripts/SmallCubeAgent.cs
  3. 2
      Project/Assets/ML-Agents/Examples/Tennis/Scripts/TennisAgent.cs

2
Project/Assets/ML-Agents/Examples/CubeWars/Scripts/CubeWarSettings.cs


public int totalScore;
public Text scoreText;
StatsSideChannel m_statsSideChannel;
//StatsSideChannel m_statsSideChannel;
// public void Awake()
// {

4
Project/Assets/ML-Agents/Examples/CubeWars/Scripts/SmallCubeAgent.cs


public Laser myLaser;
public GameObject myBody;
private EnvironmentParameters m_ResetParams;
public override void Initialize()
{

m_Shoot = false;
m_ShootTime = -.5f;
//m_Bonus = Academy.Instance.FloatProperties.GetPropertyWithDefault("bonus", 0);
m_Bonus = SideChannelUtils.GetSideChannel<FloatPropertiesChannel>().GetPropertyWithDefault("bonus", 0);
m_Bonus = m_ResetParams.GetWithDefault("bonus", 0);
float smallRange = 50f * m_MyArea.range;
transform.position = new Vector3(Random.Range(-smallRange, smallRange),

2
Project/Assets/ML-Agents/Examples/Tennis/Scripts/TennisAgent.cs


public override void Initialize()
{
m_Existential = 1f / maxStep;
m_Existential = 1f / MaxStep;
m_AgentRb = GetComponent<Rigidbody>();
m_BallRb = ball.GetComponent<Rigidbody>();
m_OpponentRb = opponent.GetComponent<Rigidbody>();

正在加载...
取消
保存