목록2023/09/13 (1)
아카이브
[개발일지] Undead Survivor 1일차
플레이어 캐릭터 이동까지 구현 Player.cs using System.Collections; using System.Collections.Generic; using UnityEngine; public class Player : MonoBehaviour { public Vector2 inputVec; public float speed; Rigidbody2D rbody; // Awake는 시작할 때 한번만 실행되는 생명주기 void Awake() { rbody = GetComponent(); } // Update is called once per frame void Update() { //GetAxisRaw로 더욱 명확한 컨트롤 구현 가능 inputVec.x = Input.GetAxisRaw("Horizo..
2D 콘텐츠 제작
2023. 9. 13. 18:15