유니티 입력 매니저1 닷지 게임제작 기초 07(플레이어 스크립트 편). 저번에 완료한 플레이어 컨트롤러 스크립트 설명및 완료에 관련된 포스팅이다. using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerController : MonoBehaviour { Rigidbody playerRigidbody; public float speed = 8f; void Start() { playerRigidbody = GetComponent(); } void Update() { float xinput = Input.GetAxis("Horizontal"); float zinput = Input.GetAxis("Vertical"); float xspeed = xinput * .. 2020. 7. 21. 이전 1 다음