[UI] 플레이어 HUD 및 체력바 개선

- PlayerHUD: HP/MP 바 동기화 개선
- StatBar: 체력바 표시 로직 개선
- Player 프리팹 UI 컴포넌트 설정

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
2026-03-12 01:30:28 +09:00
parent baf4da0f77
commit aa00ee520e
3 changed files with 123 additions and 12 deletions

View File

@@ -44,8 +44,10 @@ namespace Colosseum.UI
if (!smoothTransition)
{
displayValue = currentValue;
UpdateVisuals();
}
// 항상 즉시 시각적 업데이트 수행
UpdateVisuals();
}
private void Update()
@@ -63,7 +65,11 @@ namespace Colosseum.UI
private void UpdateVisuals()
{
if (maxValue <= 0f) return;
if (maxValue <= 0f)
{
Debug.LogWarning($"[StatBar:{gameObject.name}] UpdateVisuals: maxValue is {maxValue}, skipping");
return;
}
float ratio = Mathf.Clamp01(displayValue / maxValue);