refactor(enemy): 删除 AiPhase 影子层,动画统一由 locomotion/反应态/能力驱动
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System.Collections;
|
||||
using Animancer;
|
||||
using BaseGames.AI;
|
||||
using UnityEngine;
|
||||
|
||||
namespace BaseGames.Enemies.Abilities
|
||||
@@ -67,8 +68,8 @@ namespace BaseGames.Enemies.Abilities
|
||||
|
||||
yield return EnemyAbilityWaits.Get(_recoveryTime);
|
||||
|
||||
// SetAiPhase(Patrol) 自动播放 AnimConfig.Walk(地面移动动画)
|
||||
_enemy.SetAiPhase(AiPhase.Patrol);
|
||||
// PlayLocomotionClip(Patrol) 播放 AnimConfig.Walk(地面移动动画)
|
||||
_enemy.PlayLocomotionClip(LocomotionMode.Patrol);
|
||||
}
|
||||
|
||||
private bool IsGrounded()
|
||||
|
||||
Reference in New Issue
Block a user