From d6764ceb6e9c88ff233590330e1a592e188fad42 Mon Sep 17 00:00:00 2001 From: swrring Date: Sun, 10 May 2026 00:24:21 +0900 Subject: [PATCH] =?UTF-8?q?diag(BT12-Dev):=20AttackHitbox=C2=B7EnemyDeath?= =?UTF-8?q?=20=EC=A7=84=EB=8B=A8=20Debug.Log=20=EC=B6=94=EA=B0=80=20?= =?UTF-8?q?=E2=80=94=20Enemy=20=EC=82=AC=EB=A7=9D=20=EC=B2=98=EB=A6=AC=20X?= =?UTF-8?q?=20=EA=B7=BC=EB=B3=B8=20=EC=A7=84=EB=8B=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 배경 (자성 누적): - 본 PM 가설 5회 누적 부정확 - PD Console 정확 분석: 투사체 hit X·AttackHitbox(BT7-Dev 자동 근접) hit - t=5.35 [Projectile][Enter] other=Enemy = Enemy Collider 활성 → EnemyDeath.Execute 호출 X 영역 확정 진단 Debug.Log: - [AttackHitbox][Schedule] col·enemy·hp·t — Schedule 호출 영역 검증 - [EnemyDeath][Execute] enemy·collider.enabled·t — Execute 호출 영역 검증 회수 의무: - 트리거: PD 사망 원인 확정 직후 - 책임: 본 PM (집행 PM) - commit 메시지 약속: revert(BT12-Dev): AttackHitbox·EnemyDeath 진단 Debug.Log 회수 PD 결정 (2026-05-10): "A+B 진행해" — A 진단 Debug.Log 추가. pm-auditor 통과 + Minor 1 (회수 트리거 명시) + Improvement 1 (_collider 동시 캡처) 수용. --- Assets/Scripts/Gameplay/EnemyDeath.cs | 4 ++++ Assets/Scripts/Mechanics/AttackHitbox.cs | 3 +++ 2 files changed, 7 insertions(+) diff --git a/Assets/Scripts/Gameplay/EnemyDeath.cs b/Assets/Scripts/Gameplay/EnemyDeath.cs index a60c279..3c17fc1 100644 --- a/Assets/Scripts/Gameplay/EnemyDeath.cs +++ b/Assets/Scripts/Gameplay/EnemyDeath.cs @@ -14,6 +14,10 @@ namespace Platformer.Gameplay public override void Execute() { + // BT12-Dev 진단 (2026-05-10 PD A+B) — EnemyDeath.Execute 호출 검증. + // 회수: PD 사망 원인 확정 후 본 PM revert commit. + Debug.Log($"[EnemyDeath][Execute] enemy={(enemy != null ? enemy.name : "NULL")} collider={(enemy != null && enemy._collider != null ? enemy._collider.enabled.ToString() : "NULL")} t={Time.time:F2}"); + if (enemy == null) return; // 충돌·이동·patrol 영역 비활성 diff --git a/Assets/Scripts/Mechanics/AttackHitbox.cs b/Assets/Scripts/Mechanics/AttackHitbox.cs index 6c3c32a..c71da6c 100644 --- a/Assets/Scripts/Mechanics/AttackHitbox.cs +++ b/Assets/Scripts/Mechanics/AttackHitbox.cs @@ -70,6 +70,9 @@ namespace Platformer.Mechanics if (!health.IsAlive) { var enemy = col.GetComponent(); + // BT12-Dev 진단 (2026-05-10 PD A+B) — EnemyDeath schedule 호출 검증. + // 회수: PD 사망 원인 확정 후 본 PM revert commit. + Debug.Log($"[AttackHitbox][Schedule] col={col.name} enemy={(enemy != null ? enemy.name : "NULL")} hp={health.CurrentHP} t={Time.time:F2}"); if (enemy != null) { Schedule().enemy = enemy;