유니티 C# 캐릭터 키보드 이동 간단 구현


유니티 C# 캐릭터 키보드 이동 간단 구현

방향키로 이동 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class PlayerMove : MonoBehaviour { public float moveSpeed = 5.0f; private void FixedUpdate() //키보드로 이동 { float h = Input.GetAxis("Horizontal"); float v = Input.GetAxis("Vertical"); transform.position += new Vector3(h, 0, v) * moveSpeed * Time.deltaTime; } } 키보드로 이동 using System.Col..


원문링크 : 유니티 C# 캐릭터 키보드 이동 간단 구현