feat: 플레이어 탱킹 및 지원 스킬 1차 구현

- 도발, 방어 태세, 철벽 스킬과 위협 생성 배율 시스템을 추가

- 치유, 광역 치유, 보호막 스킬과 관련 이상상태/이펙트 자산을 구성

- 보호막 흡수 로직과 체력 HUD 보너스 표시를 PlayerNetworkController, PlayerHUD, StatBar에 반영

- 플레이어 프리팹 슬롯과 디버그 메뉴를 확장해 탱킹·지원 스킬 검증 경로를 추가

- Unity 컴파일과 런타임 테스트에서 도발, 치유, 광역 치유, 보호막 발동 및 보호막 수치 적용을 확인
This commit is contained in:
2026-03-24 19:17:16 +09:00
parent c4209855ab
commit 0c7c7b0c12
48 changed files with 1200 additions and 13 deletions

View File

@@ -77,6 +77,7 @@ namespace Colosseum.UI
targetPlayer.OnHealthChanged += HandleHealthChanged;
targetPlayer.OnManaChanged += HandleManaChanged;
targetPlayer.OnShieldChanged += HandleShieldChanged;
}
private void UnsubscribeFromEvents()
@@ -85,13 +86,14 @@ namespace Colosseum.UI
targetPlayer.OnHealthChanged -= HandleHealthChanged;
targetPlayer.OnManaChanged -= HandleManaChanged;
targetPlayer.OnShieldChanged -= HandleShieldChanged;
}
private void HandleHealthChanged(float oldValue, float newValue)
{
if (healthBar != null && targetPlayer != null)
{
healthBar.SetValue(newValue, targetPlayer.MaxHealth);
healthBar.SetValue(newValue, targetPlayer.MaxHealth, targetPlayer.Shield);
}
}
@@ -103,13 +105,21 @@ namespace Colosseum.UI
}
}
private void HandleShieldChanged(float oldValue, float newValue)
{
if (healthBar != null && targetPlayer != null)
{
healthBar.SetValue(targetPlayer.Health, targetPlayer.MaxHealth, newValue);
}
}
private void UpdateStatBars()
{
if (targetPlayer == null) return;
if (healthBar != null)
{
healthBar.SetValue(targetPlayer.Health, targetPlayer.MaxHealth);
healthBar.SetValue(targetPlayer.Health, targetPlayer.MaxHealth, targetPlayer.Shield);
}
if (manaBar != null)

View File

@@ -32,14 +32,24 @@ namespace Colosseum.UI
private float currentValue;
private float maxValue;
private float displayValue;
private float bonusValue;
/// <summary>
/// 바 값 설정
/// </summary>
public void SetValue(float current, float max)
{
SetValue(current, max, 0f);
}
/// <summary>
/// 바 값과 보너스 수치를 함께 설정합니다.
/// </summary>
public void SetValue(float current, float max, float bonus)
{
currentValue = current;
maxValue = max;
bonusValue = Mathf.Max(0f, bonus);
if (!smoothTransition)
{
@@ -102,7 +112,14 @@ namespace Colosseum.UI
// 텍스트
if (valueText != null)
{
valueText.text = $"{Mathf.CeilToInt(displayValue)} / {Mathf.CeilToInt(maxValue)}";
if (bonusValue > 0f)
{
valueText.text = $"{Mathf.CeilToInt(displayValue)} / {Mathf.CeilToInt(maxValue)} (+{Mathf.CeilToInt(bonusValue)})";
}
else
{
valueText.text = $"{Mathf.CeilToInt(displayValue)} / {Mathf.CeilToInt(maxValue)}";
}
}
}