바닥 콜라이더 빈틈 제거

This commit is contained in:
김민구
2026-07-03 12:53:16 +09:00
parent 999ae4e3d4
commit caf69d0618
2 changed files with 289 additions and 198 deletions
File diff suppressed because it is too large Load Diff
+2 -3
View File
@@ -19,7 +19,7 @@ public class PlayerMove : MonoBehaviour
// 컴포넌트 프로퍼티
public Rigidbody2D rb { get; private set; }
// [수정] 동일한 오브젝트에 있는 SPUM_Prefabs를 가져옵니다.
// SPUM_Prefabs를 가져옵니다.
private SPUM_Prefabs spumPrefab;
private float maxSpeed;
@@ -40,9 +40,8 @@ public class PlayerMove : MonoBehaviour
// 1. Rigidbody2D 할당
rb = GetComponent<Rigidbody2D>();
// 2. [수정] 같은 오브젝트에 붙어있으므로 GetComponent로 정확히 가져옵니다.
// 2. 부모 오브젝트에 붙어 있는 SPUM_Prefabs를 가져옵니다.
spumPrefab = GetComponentInParent<SPUM_Prefabs>();
// spumPrefab = GetComponent<SPUM_Prefabs>();
if (spumPrefab == null)
{