地图系统

This commit is contained in:
2026-06-05 18:41:33 +08:00
parent 613f2a4d13
commit fe4fd60083
234 changed files with 33090 additions and 4899 deletions

View File

@@ -54,8 +54,10 @@ namespace BaseGames.UI.HUD
private void OnEnable()
{
_onHPChanged?.Subscribe(UpdateHP).AddTo(_subs);
// MaxHP 必须先于 HP 订阅:粘性回放时先 RebuildHPCells 建满格子,再 UpdateHP 设激活数,
// 否则受伤档CurrentHP<MaxHP回放顺序颠倒会导致 UpdateHP 作用于空列表后被全量重建覆盖。
_onMaxHPChanged?.Subscribe(RebuildHPCells).AddTo(_subs);
_onHPChanged?.Subscribe(UpdateHP).AddTo(_subs);
_onSoulPowerChanged?.Subscribe(UpdateSoul).AddTo(_subs);
_onSpiritPowerChanged?.Subscribe(UpdateSpirit).AddTo(_subs);
_onLingZhuChanged?.Subscribe(UpdateLingZhu).AddTo(_subs);