바닥 콜라이더 빈틈 제거
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -19,7 +19,7 @@ public class PlayerMove : MonoBehaviour
|
|||||||
// 컴포넌트 프로퍼티
|
// 컴포넌트 프로퍼티
|
||||||
public Rigidbody2D rb { get; private set; }
|
public Rigidbody2D rb { get; private set; }
|
||||||
|
|
||||||
// [수정] 동일한 오브젝트에 있는 SPUM_Prefabs를 가져옵니다.
|
// SPUM_Prefabs를 가져옵니다.
|
||||||
private SPUM_Prefabs spumPrefab;
|
private SPUM_Prefabs spumPrefab;
|
||||||
|
|
||||||
private float maxSpeed;
|
private float maxSpeed;
|
||||||
@@ -40,9 +40,8 @@ public class PlayerMove : MonoBehaviour
|
|||||||
// 1. Rigidbody2D 할당
|
// 1. Rigidbody2D 할당
|
||||||
rb = GetComponent<Rigidbody2D>();
|
rb = GetComponent<Rigidbody2D>();
|
||||||
|
|
||||||
// 2. [수정] 같은 오브젝트에 붙어있으므로 GetComponent로 정확히 가져옵니다.
|
// 2. 부모 오브젝트에 붙어 있는 SPUM_Prefabs를 가져옵니다.
|
||||||
spumPrefab = GetComponentInParent<SPUM_Prefabs>();
|
spumPrefab = GetComponentInParent<SPUM_Prefabs>();
|
||||||
// spumPrefab = GetComponent<SPUM_Prefabs>();
|
|
||||||
|
|
||||||
if (spumPrefab == null)
|
if (spumPrefab == null)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user