diff --git a/Assets/Scripts/Gameplay/EnablePlayerInput.cs b/Assets/Scripts/Gameplay/EnablePlayerInput.cs index ede1d7c..9ee3318 100644 --- a/Assets/Scripts/Gameplay/EnablePlayerInput.cs +++ b/Assets/Scripts/Gameplay/EnablePlayerInput.cs @@ -1,3 +1,4 @@ +using UnityEngine; using Platformer.Core; using Platformer.Model; @@ -14,6 +15,9 @@ namespace Platformer.Gameplay { var player = model.player; player.controlEnabled = true; + // PD 지시 2026-05-13 — 부활 모션 종료 시점 Rigidbody2D.simulated 복원 (PlayerDeath 영역 disable 영역 복원) + var body = player.GetComponent(); + if (body != null) body.simulated = true; } } } \ No newline at end of file diff --git a/Assets/Scripts/Gameplay/PlayerDeath.cs b/Assets/Scripts/Gameplay/PlayerDeath.cs index 680242d..90f171d 100644 --- a/Assets/Scripts/Gameplay/PlayerDeath.cs +++ b/Assets/Scripts/Gameplay/PlayerDeath.cs @@ -35,7 +35,9 @@ namespace Platformer.Gameplay var body = player.GetComponent(); if (body != null) body.simulated = false; - player.animator.SetTrigger("hurt"); + // PD 지시 2026-05-13 — Player.controller parameter 정합 "hit" Trigger (구 "hurt" parameter 부재) + UnscaledTime + player.animator.updateMode = AnimatorUpdateMode.UnscaledTime; + player.animator.SetTrigger("hit"); player.animator.SetBool("dead", true); Simulation.Schedule(2); } diff --git a/Assets/Scripts/Gameplay/PlayerSpawn.cs b/Assets/Scripts/Gameplay/PlayerSpawn.cs index b8c97d7..ee77a55 100644 --- a/Assets/Scripts/Gameplay/PlayerSpawn.cs +++ b/Assets/Scripts/Gameplay/PlayerSpawn.cs @@ -25,9 +25,7 @@ namespace Platformer.Gameplay // PlayerInvulnerabilityFlash 영역 IsInvulnerable 자동 깜박 (2초) player.health.Resurrect(); - // PD 지시 2026-05-13 — PlayerDeath 영역 Rigidbody2D.simulated=false 복원 - var body = player.GetComponent(); - if (body != null) body.simulated = true; + // PD 지시 2026-05-13 — Rigidbody2D.simulated 복원 = EnablePlayerInput 영역 (2초 후) 이전·즉시 X (부활 모션 중 움직임 차단) player.jumpState = PlayerController.JumpState.Grounded; // animator.SetBool("dead", false)·SetTrigger("resurrect") = Health.Resurrect 내부 호출됨 diff --git a/Assets/Scripts/Skills/Effectors/Projectile.cs b/Assets/Scripts/Skills/Effectors/Projectile.cs index 9522ca1..c2ffe36 100644 --- a/Assets/Scripts/Skills/Effectors/Projectile.cs +++ b/Assets/Scripts/Skills/Effectors/Projectile.cs @@ -229,10 +229,18 @@ namespace EerieVillage.Skills.Effectors protected void SelfDestruct() { + // PD 지시 2026-05-13 — 투사체 잔상 진단 (회수 의무) + Debug.Log($"[Projectile][SelfDestruct] name={name} pos=({transform.position.x:F2},{transform.position.y:F2}) t={Time.time:F2}"); CancelInvoke(nameof(SelfDestruct)); Destroy(gameObject); } + // PD 지시 2026-05-13 — 투사체 잔상 진단 (회수 의무·Destroy 호출 외 경로 영역 영역 영역 검출) + void OnDestroy() + { + Debug.Log($"[Projectile][OnDestroy] name={name} t={Time.time:F2}"); + } + // PD 지시 2026-05-13 — 시각화 박스 자식 reference (Update 영역 매 frame Inspector 정합 갱신용) protected Transform _debugBoxTransform;