feat(enemy): BossPhaseAbilityGate——阶段即换招池

按阶段启停能力组件,被禁用的招经 CanUse 自动退出选招候选,
阶段门不需要碰选招器。取代 BossSkillSO.availablePhaseIndices。
EnterPhase 先换池后广播;OnSpawn 回阶段 0(对象池复用)。
This commit is contained in:
2026-07-30 13:50:34 +08:00
parent 24c612930e
commit 50f505279d
5 changed files with 151 additions and 4 deletions
@@ -6,7 +6,7 @@ namespace BaseGames.Enemies.Abilities
/// </summary>
public interface IAttackCandidate
{
bool CanUse { get; } // 未冷却 + 未运行 + 存活
bool CanUse { get; } // 组件启用 + 未冷却 + 未运行 + 存活
bool RequiresLineOfSight { get; } // 是否需要视线(由敌人级 LOS 提供)
bool RequiresGrounded { get; } // 是否需要着地
float Weight { get; } // WeightedRandom 权重