고스트 프리팹 수정

This commit is contained in:
백민승_crow 2026-02-01 20:18:20 +09:00
parent 486fdbd829
commit 8e1cc8b73e
3 changed files with 5 additions and 4 deletions

View File

@ -623,7 +623,7 @@ MonoBehaviour:
hangWallCheckCollider: {fileID: 1591313861624791812}
groundLayer:
serializedVersion: 2
m_Bits: 4294967295
m_Bits: 8
--- !u!114 &2735959092271683024
MonoBehaviour:
m_ObjectHideFlags: 0

View File

@ -131,7 +131,7 @@ GameObject:
- component: {fileID: 265735348}
- component: {fileID: 265735350}
m_Layer: 3
m_Name: Square
m_Name: wall
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
@ -488,7 +488,7 @@ GameObject:
m_Component:
- component: {fileID: 1346115797}
m_Layer: 0
m_Name: Wall
m_Name: Walls
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
@ -601,7 +601,7 @@ GameObject:
- component: {fileID: 2141050426}
- component: {fileID: 2141050425}
m_Layer: 3
m_Name: Square (1)
m_Name: wall
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0

View File

@ -108,6 +108,7 @@ public class PlayerMovement : MonoBehaviour
float newX = hit.point.x - (direction * playerHalfWidth);
transform.position = new Vector2(newX, transform.position.y);
gameObject.transform.SetParent(hit.collider.transform);
}
}
}