씬에 물리 충돌 적용

This commit is contained in:
Mingu Kim
2025-06-08 21:45:12 +09:00
parent ef8c355302
commit 7f3a09a92f
5 changed files with 1685 additions and 32 deletions

View File

@@ -6,7 +6,7 @@ public class Movement2D : MonoBehaviour
private float moveSpeed = 5f;
public Vector3 MoveDirection { get; set; } = Vector2.zero;
private void Update()
{
transform.position += MoveDirection * moveSpeed * Time.deltaTime;