GameMain Scene 정리, 구형 프리팹 제거

This commit is contained in:
2026-02-01 12:26:45 +09:00
parent 41f5a141d2
commit 43e9f670fe
26 changed files with 1415 additions and 3563 deletions

View File

@@ -1,3 +1,4 @@
using Northbound;
using UnityEngine;
[RequireComponent(typeof(Rigidbody))]
@@ -8,15 +9,20 @@ public class PlayerController : MonoBehaviour
private Rigidbody rb;
private Vector3 moveDirection;
private PlayerInteraction playerInteraction;
void Start()
{
rb = GetComponent<Rigidbody>();
rb.constraints = RigidbodyConstraints.FreezeRotation;
playerInteraction = GetComponent<PlayerInteraction>();
}
void Update()
{
if (playerInteraction != null && playerInteraction.IsInteracting)
return;
float horizontal = Input.GetAxisRaw("Horizontal");
float vertical = Input.GetAxisRaw("Vertical");