diag(BT12-Dev): AttackHitbox·EnemyDeath 진단 Debug.Log 추가 — Enemy 사망 처리 X 근본 진단

배경 (자성 누적):
- 본 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> 호출 영역 검증
- [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 동시 캡처) 수용.
This commit is contained in:
깃 관리자 2026-05-10 00:24:21 +09:00
parent d27a63f32e
commit d6764ceb6e
2 changed files with 7 additions and 0 deletions

View File

@ -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 영역 비활성

View File

@ -70,6 +70,9 @@ namespace Platformer.Mechanics
if (!health.IsAlive)
{
var enemy = col.GetComponent<EnemyController>();
// 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<EnemyDeath>().enemy = enemy;