docs(BT12-Dev-Vis): PlayerSpawn CS0246 fix·자성 #8 (엔트리 19)
EerieVillage c052d78 push 정합. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
5265e03226
commit
986e289aae
File diff suppressed because one or more lines are too long
|
|
@ -484,6 +484,18 @@ if (other.GetComponent<Projectile>() != null) return;
|
|||
|
||||
---
|
||||
|
||||
## 엔트리 19 — PlayerSpawn.cs CS0246 컴파일 에러 fix (2026-05-13 EerieVillage `c052d78`)
|
||||
|
||||
**PD 보고**: `Assets\Scripts\Gameplay\PlayerSpawn.cs(28,44): error CS0246: The type or namespace name 'Rigidbody2D' could not be found`
|
||||
|
||||
**원인**: 직전 commit `3a672f0` 영역 Rigidbody2D 참조 추가 영역 PlayerSpawn.cs 영역 `using UnityEngine` 누락 (기존 `Platformer.Core·Mechanics·Model` 영역만).
|
||||
|
||||
**fix**: `using UnityEngine;` 첫 줄 추가.
|
||||
|
||||
**본 PM 자성 #8** — 신규 type 사용 시 namespace using 사전 검증 누락. `feedback_new_code_existing_system_dependency_unmeasured` 정합 — 신규 코드 type·using 영역 사전 측정 의무. 재발 방지: 신규 type 추가 시 (a) 해당 type namespace 확인 (b) 파일 영역 using 확인 (c) 미존재 시 using 추가 의무.
|
||||
|
||||
---
|
||||
|
||||
## 영역 자산
|
||||
|
||||
- `HitboxDebug.cs` 공용 helper (Spawn·AttachToTransform·GetWhiteSprite) — 추후 다른 카테고리 (C 설치·D 소환·E 오라) 영역 박스 시각화 재사용 가능.
|
||||
|
|
|
|||
Loading…
Reference in New Issue