diff --git a/Assets/Scripts/Mechanics/GameOptimizer.cs b/Assets/Scripts/Mechanics/GameOptimizer.cs index 2778352..d64fb56 100644 --- a/Assets/Scripts/Mechanics/GameOptimizer.cs +++ b/Assets/Scripts/Mechanics/GameOptimizer.cs @@ -96,6 +96,11 @@ namespace Platformer.Mechanics if (autoFg != null) { autoFg.layer = 16; + // BT67 — PD 보고 (2026-05-08): "발판의 위치가 1만큼 y로 올라갔는데 왜 그런거지?" + // 원인: AutoForeground 신규 생성 시 transform default (0,0,0) ↔ PD가 Level/Foreground를 y=-1로 직접 변경 + // 정정: 매 Play 시점 PD Foreground(또는 Level) localPosition와 동기화 + var refGo = pdForeground != null ? pdForeground : GameObject.Find("Level"); + if (refGo != null) autoFg.transform.localPosition = refGo.transform.localPosition; fgTilemap = autoFg.GetComponent(); if (fgTilemap == null) fgTilemap = autoFg.AddComponent(); if (autoFg.GetComponent() == null)