using UnityEngine; namespace BaseGames.Combat { /// /// 护盾组件(Phase 1 存根)。实现 IShieldable 接口供 HurtBox 注入。 /// Phase 2 实现完整护盾逻辑(护盾值、再生、破盾事件)。 /// public class ShieldComponent : MonoBehaviour, IShieldable { public bool HasShield { get; private set; } /// /// 尝试以护盾吸收伤害。 /// 返回穿透量(0 = 全部吸收,>0 = 穿透量继续走 TakeDamage 流程)。 /// Phase 1:护盾不存在,全量穿透。 /// public int AbsorbDamage(int amount) => amount; } }