GameMain Scene 정리, 구형 프리팹 제거
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user