fix(BT12-Dev): Enemy·Player 사망 모션 y -0.5 오프셋 (PD 지시 2026-05-13)

EnemyDeath·PlayerDeath Execute 영역 death Animator Trigger 직전 transform.position.y -= 0.5 적용.
sprite 위로 떠 보이는 현상 정정·collider·gameplay 영향 X (Enemy 1초 후 Destroy·Player PlayerSpawn 시 위치 reset).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
깃 관리자 2026-05-13 19:49:28 +09:00
parent 2efcd34177
commit 18b21256cd
2 changed files with 7 additions and 0 deletions

View File

@ -33,6 +33,9 @@ namespace Platformer.Gameplay
// BT12-Dev 2026-05-10 — Enemy.controller 영역 Idle/Run/Hurt → Death transition 추가 후 정합 발동.
// BT12-Dev 2026-05-10 근본 fix — Time.timeScale = 0 (카드 선택 모드) 영역 Animator Update Mode = Normal 정지 회피.
// updateMode = UnscaledTime 영역 → timeScale 영향 X · death animation 정합 재생 + transition 정합 발동.
// PD 지시 2026-05-13 — 사망 모션 시각 위치 보정 y -0.5 (Animator death 영역 sprite 위로 떠 보이는 현상 정정)
enemy.transform.position += new Vector3(0f, -0.5f, 0f);
var animator = enemy.GetComponent<Animator>();
if (animator != null)
{

View File

@ -27,6 +27,10 @@ namespace Platformer.Gameplay
if (player.audioSource && player.ouchAudio)
player.audioSource.PlayOneShot(player.ouchAudio);
// PD 지시 2026-05-13 — 사망 모션 시각 위치 보정 y -0.5 (sprite 위로 떠 보이는 현상 정정)
player.transform.position += new Vector3(0f, -0.5f, 0f);
player.animator.SetTrigger("hurt");
player.animator.SetBool("dead", true);
Simulation.Schedule<PlayerSpawn>(2);