오브젝트이동1 ★Unity 유니티 기초★ 오브젝트 이동시키기 안녕기모찌 저의 첫 글이에요 사실 유니티 인터페이스 소개 글도 네이버에 적었었는데, 조만간 여기 옮길 예정이에요 (어쩌라구요 ((((((퍽 ★ 방법1 - 키보드 방향키로 움직이기 ★ using System.Collections; using System.Collections.Generic; using UnityEngine; public class MyPlayer : MonoBehaviour// 스크립트 이름 수정 { [SerializeField] private float moveSpeed; private Vector3 moveDirection; private void Update() { moveDirection.x = Input.GetAxisRaw("Horizontal");//자동지정 함수명 moveDir.. 2023. 8. 11. 이전 1 다음