feat(enemy): 追击起手前先转身朝玩家(播 Flip) + 冲刺速度可配置

- ContactChaseAbility:进入追击先 FaceDirection 朝玩家,若背对则播 Flip 转身、
  等 IsTurning 结束后再 Skill_Start(张口)→冲刺;已朝向玩家则跳过转身直接张口。
- 新增 _dashSpeed 字段(<=0 回退 Stats.RunSpeed),冲刺速度可在能力 Inspector 配置。
- E001 EnemyMovement._enableTurnAnimation=true(prefab+脚手架),转向播 AnimConfig.Turn
  (Flip),用于巡逻翻边与追击起手前转身;脚手架 PlaceE001 同步。

PlayMode 验证(brain 关隔离):背对玩家→触发追击→clip=Flip(IsTurning)→转向完成
facing 朝玩家→Skill_Start→冲刺→Skill_End,"先转身再张口"成立。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@
This commit is contained in:
2026-07-10 16:57:41 +08:00
parent 9eca69a6ba
commit db55889088
3 changed files with 23 additions and 6 deletions
@@ -326,7 +326,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
_config: {fileID: 11400000, guid: 508afd17a0cf2fe47935c78097c3b093, type: 2}
_spriteRenderer: {fileID: 7572402007749840909}
_enableTurnAnimation: 0
_enableTurnAnimation: 1
_animancer: {fileID: 7326741988116792408}
_animConfig: {fileID: 11400000, guid: 06936c5bc3358904cb269abdfa60ed14, type: 2}
_visualRoot: {fileID: 1594798921504223030}
@@ -603,6 +603,7 @@ MonoBehaviour:
_Clip: {fileID: 7400000, guid: 9f0fea347ba7eb347b0f71b423832808, type: 2}
_NormalizedStartTime: NaN
_contactDamage: {fileID: 9135205194319985817}
_dashSpeed: 0
references:
version: 2
RefIds: []