diff --git a/Assets/Scripts/Skills/Effectors/Projectile.cs b/Assets/Scripts/Skills/Effectors/Projectile.cs index c2ffe36..78ad173 100644 --- a/Assets/Scripts/Skills/Effectors/Projectile.cs +++ b/Assets/Scripts/Skills/Effectors/Projectile.cs @@ -124,6 +124,13 @@ namespace EerieVillage.Skills.Effectors protected virtual void Update() { + // PD 지시 2026-05-13 — Initialize 호출 이전 Update 발화 차단·_data null 시 즉시 SelfDestruct (잔존 차단) + if (_data == null) + { + SelfDestruct(); + return; + } + // PD 지시 2026-05-13 — Inspector HitboxSize 변경 즉시 반영 SyncHitboxToData(); @@ -162,6 +169,10 @@ namespace EerieVillage.Skills.Effectors protected virtual void OnTriggerEnter2D(Collider2D other) { + // PD 지시 2026-05-13 — Initialize 호출 이전 OnTriggerEnter2D 발화 영역 NullReferenceException 차단 + // ProjectileSpawner.Trigger 영역 collider 부착 후 Initialize 호출 영역 race 영역 영역 발화 가능 + if (_runtime == null || _data == null) return; + if (_hitTargets.Contains(other)) return; // PD 지시 2026-05-13 — 투사체끼리 충돌 X·통과 정합 (Projectile 컴포넌트 동족 skip·Wall 판정 이전)