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;