From af6ac1652c3229f7423a8348cd2d5a607291d8bf Mon Sep 17 00:00:00 2001 From: swrring Date: Sun, 10 May 2026 01:31:58 +0900 Subject: [PATCH] =?UTF-8?q?chore(BT12-Dev-Death):=20Health.cs=20=EC=A7=84?= =?UTF-8?q?=EB=8B=A8=20Debug.Log=203=EC=A4=84=20=ED=9A=8C=EC=88=98=20?= =?UTF-8?q?=E2=80=94=20=EC=82=AC=EB=A7=9D=20=EC=9B=90=EC=9D=B8=20=ED=99=95?= =?UTF-8?q?=EC=A0=95=20=ED=9B=84=20=ED=9A=8C=EC=88=98=20=EC=9D=98=EB=AC=B4?= =?UTF-8?q?=20=EC=A0=95=ED=95=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 회수 영역: - Decrement(damage) line 132 — Debug.Log + StackTrace 1줄 - DecrementSilent(damage) line 205 — Debug.Log 1줄 - Die() line 257 — Debug.Log + StackTrace 1줄 진단 도구 회수 누적: Projectile 8 + AttackHitbox 1 + EnemyDeath 1 + Health 3 = 13줄 전수 회수. PD 정합 (2026-05-10): "이제 정상적으로 적이 죽는거 같아." --- Assets/Scripts/Mechanics/Health.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Assets/Scripts/Mechanics/Health.cs b/Assets/Scripts/Mechanics/Health.cs index b554eb0..e5ed4a2 100644 --- a/Assets/Scripts/Mechanics/Health.cs +++ b/Assets/Scripts/Mechanics/Health.cs @@ -128,8 +128,6 @@ namespace Platformer.Mechanics int beforeHP = currentHP; currentHP = Mathf.Clamp(currentHP - damage, 0, maxHP); - // PD 지시 2026-05-09 — 사망 원인 추적 (스킬 습득 후 갑자기 사망 버그) - Debug.Log($"[Health@{name}] Decrement(damage={damage}) hp {beforeHP}→{currentHP} t={Time.time:F2}\n{System.Environment.StackTrace}"); // 피격 성공 시 무적 시간 활성화 (다음 피격 대비) if (invulnerableDuration > 0f) @@ -202,7 +200,6 @@ namespace Platformer.Mechanics int beforeHP = currentHP; currentHP = Mathf.Clamp(currentHP - damage, 0, maxHP); - Debug.Log($"[Health@{name}] DecrementSilent(damage={damage}) hp {beforeHP}→{currentHP} t={Time.time:F2}"); if (invulnerableDuration > 0f) invulnerableUntil = Time.time + invulnerableDuration; if (currentHP > 0) @@ -254,7 +251,6 @@ namespace Platformer.Mechanics /// public void Die() { - Debug.Log($"[Health@{name}] Die() called t={Time.time:F2}\n{System.Environment.StackTrace}"); invulnerableUntil = -1f; // i-frame 무효화 if (currentHP > 0) {