diff --git a/Assets/Scripts/Mechanics/GameOptimizer.cs b/Assets/Scripts/Mechanics/GameOptimizer.cs index 6e62677..836f088 100644 --- a/Assets/Scripts/Mechanics/GameOptimizer.cs +++ b/Assets/Scripts/Mechanics/GameOptimizer.cs @@ -69,12 +69,15 @@ namespace Platformer.Mechanics applied++; } - // 2. PD Foreground = 가림막 시각만 (TilemapCollider2D 제거 → 충돌 X). + // 2. PD Foreground = 가림막 시각 + TilemapCollider 부착 (BT82 정정·PD 보고: Enemy 떨어짐). + // 이전 BT66 R2의 Object.Destroy 폐기 — Player는 Drop-Through 패턴 영역에서 통과·착지 분기 / Enemy는 충돌 ON. + // Layer 16 강제 (AutoForeground와 동일·Drop-Through 패턴 적용). var pdForeground = GameObject.Find("Foreground"); if (pdForeground != null) { + pdForeground.layer = 16; var pdFgTc = pdForeground.GetComponent(); - if (pdFgTc != null) Object.Destroy(pdFgTc); + if (pdFgTc == null) pdFgTc = pdForeground.AddComponent(); } // 3. AutoForeground GameObject (Grid 자식·신규) — 자동 분류 발판 전용.