docs(BT12-Dev-Vis): 사망 팝업·y -0.6·투사체 lifetime (엔트리 22)

EerieVillage b1931af push 정합.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
깃 관리자 2026-05-13 20:19:02 +09:00
parent 13d80cd1ad
commit 3f20a1da65
2 changed files with 29 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -548,6 +548,34 @@ if (other.GetComponent<Projectile>() != null) return;
---
## 엔트리 22 — 사망 팝업 타이밍·y -0.6·투사체 lifetime 강화 (2026-05-13 EerieVillage `b1931af`)
**PD 보고 3건**:
1. "죽는 모션은 나오지만 애니메이션이 끝나기전에 팝업UI가 나오고 있어. (죽는 에니메이션 종료 시점에 팝업 UI가 나오도록 수정해."
2. "플레이어의 죽는 모션은 y 값을 -0.3 더 내려줘."
3. "여전히 맵에 투사체가 남아있어."
### 작업 1 — 죽는 모션 종료 시점 팝업 UI fix
**원인 추정**: LevelUpManager.HandleLevelUp 영역 Enemy 처치 시 즉시 SkillSelectionUI.Show → 죽는 모션 동안 LevelUp 발생 = 팝업 즉시 표시 (Player 사망 상태 미고려).
**fix** (LevelUpManager.cs):
- `_pendingLevels` Queue 신규
- `HandleLevelUp` 영역 Player IsAlive=false 시 pending Enqueue·즉시 표시 X
- `Update` 영역 매 frame Player IsAlive·!_isLevelUpActive check → pending dequeue → ShowLevelUpUI
- 부활 (Health.Resurrect → IsAlive=true) 시 pending LevelUp 표시 정합
### 작업 2 — Player 사망 모션 y -0.6 (누적 -0.3 영역 추가 -0.3)
PlayerDeath.Execute 영역 `y -0.3``y -0.6`.
### 작업 3 — 투사체 잔상 강화 + 진단
**현재 코드**: `Invoke(nameof(SelfDestruct), _lifetime)` 영역 5초 영역 자동 SelfDestruct. 그러나 PD 보고 = 여전 잔존 → Invoke 호출 누락 또는 CancelInvoke 호출 영역 영역 영역 가능.
**fix**:
- Projectile.Update 영역 `Time.time - _spawnTime > _lifetime + 0.5f` 시 강제 SelfDestruct (Invoke 누락 안전망)
- Projectile.Initialize 영역 `[Projectile][Initialize]` 진단 Log (dir·speed·maxRange·lifetime·t)
- ProjectileSpawner.Trigger 영역 `[ProjectileSpawner] Trigger card·count·facing·t` 진단 Log
- 회수 의무 — PD Console 측정 후 본 PM revert
---
## 영역 자산
- `HitboxDebug.cs` 공용 helper (Spawn·AttachToTransform·GetWhiteSprite) — 추후 다른 카테고리 (C 설치·D 소환·E 오라) 영역 박스 시각화 재사용 가능.