浏览代码

reduce shockwave damage

/develop/cubewars/splashdamage
Andrew Cohen 4 年前
当前提交
50e0b7ad
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      Project/Assets/ML-Agents/Examples/CubeWars/Scripts/LargeCubeAgent.cs

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


{
if (hit.collider.gameObject.CompareTag("StrongSmallAgent") || hit.collider.gameObject.CompareTag("WeakSmallAgent"))
{
hit.collider.gameObject.GetComponent<SmallCubeAgent>().HitAgent(1f);
hit.collider.gameObject.GetComponent<SmallCubeAgent>().HitAgent(.8f);
AddReward(.1f);
}
}

正在加载...
取消
保存