feat(enemy): ContactChaseAbility 改造为 RushAbility(冲锋)
- 起手前锁定玩家 X 与方向(committed),终点改为身体整体越过锁定点(Body.HasPassed) - 终止条件:越过锁定点/撞墙(只判墙)/最大冲刺时长(SO 新增 maxDashDuration)/净位移卡死 - 冲锋期间经 EnemyMoveInput.AllowLedgeCross 放开悬崖夹紧,可冲下崖不悬停边缘 - 类与文件重命名(GUID 保留),脚手架与向导同步更新
This commit is contained in:
@@ -34,5 +34,13 @@ namespace BaseGames.Enemies
|
||||
|
||||
/// <summary>直接指定朝向方向:+1 右 / -1 左 / 0 表示由 FaceTargetPos 计算。</summary>
|
||||
public int FaceDir;
|
||||
|
||||
/// <summary>
|
||||
/// 本次移动允许越过崖沿(committed 冲锋用):置 true 时 <see cref="EnemyMovement.MoveWithSpeed"/>
|
||||
/// 不再做悬崖夹紧,敌人会冲出平台边缘并按重力下落,而非停在崖边。
|
||||
/// <b>持久</b>——随 MoveDir/MoveSpeed 同步清零(WantStop 时复位),故 StopMovement() 即自动关闭,
|
||||
/// 不会因能力被打断而残留。
|
||||
/// </summary>
|
||||
public bool AllowLedgeCross;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user