docs(BT12-Dev-Vis): CS1056 fix·자성 #15 (엔트리 36)
EerieVillage 9879425 push 정합. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
418358799e
commit
b6eaae26f8
File diff suppressed because one or more lines are too long
|
|
@ -847,6 +847,24 @@ A02·A13·A04·A05·A_Laser·A08·A12·**A06·A11** (Phase B 신규 추가)
|
|||
|
||||
---
|
||||
|
||||
## 엔트리 36 — ProjectileSpawner CS1056 컴파일 에러 fix (2026-05-13 EerieVillage `9879425`)
|
||||
|
||||
**PD 보고**: `Assets\Scripts\Skills\Effectors\ProjectileSpawner.cs(61,13): error CS1056: Unexpected character '{'`
|
||||
|
||||
**원인**: 직전 commit `aa6cef1` 영역 Debug.Log interpolated string 영역 `\"NULL\"` escape 사용. C# interpolated string `$"..."` 영역 = `\"` escape 미지원 → 컴파일 에러.
|
||||
|
||||
**fix**: ternary 결과 영역 변수 분리
|
||||
```csharp
|
||||
string castName = data.CastFxPrefab != null ? data.CastFxPrefab.name : "NULL";
|
||||
string projName = data.ProjectilePrefab != null ? data.ProjectilePrefab.name : "NULL";
|
||||
string hitName = data.OnHitFxPrefab != null ? data.OnHitFxPrefab.name : "NULL";
|
||||
UnityEngine.Debug.Log($"[ProjectileSpawner] card={data.CardId} CastFx={castName} ProjPrefab={projName} OnHitFx={hitName}");
|
||||
```
|
||||
|
||||
**본 PM 자성 #15** — Edit 후 컴파일 사전 검증 누락. 본 PM Unity Editor 컴파일 직접 측정 X (paths.local.json 부재·MCP 차단)·PD 보고 영역 의존. C# string escape 영역 사전 측정 의무. 재발 방지: interpolated string 영역 ternary·복잡 표현 영역 변수 분리 표준.
|
||||
|
||||
---
|
||||
|
||||
## 영역 자산
|
||||
|
||||
- `HitboxDebug.cs` 공용 helper (Spawn·AttachToTransform·GetWhiteSprite) — 추후 다른 카테고리 (C 설치·D 소환·E 오라) 영역 박스 시각화 재사용 가능.
|
||||
|
|
|
|||
Loading…
Reference in New Issue