浏览代码

fix gun timing

/hh-develop-fps_game_project
HH 4 年前
当前提交
e344129b
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 6
      Project/Assets/ML-Agents/Examples/FPS_Game/Scripts/MultiGunAlternating.cs

6
Project/Assets/ML-Agents/Examples/FPS_Game/Scripts/MultiGunAlternating.cs


// {
if (autoShootEnabled)
{
ShootGunAtIndex(currentGunIndex);
// ShootGunAtIndex(currentGunIndex);
Shoot();
ShootGunAtIndex(currentGunIndex);
// ShootGunAtIndex(currentGunIndex);
Shoot();
}
// }
shootTimer += Time.fixedDeltaTime;

正在加载...
取消
保存