게임 개발

1. Asset 폴더 내부에, C# Script 만들어서, 키보드를 눌러, 플레이어나 몬스터를 이동시키도록 할 수 있다. // 유니티를 사용하기위해 불러오기 using System.Collections; using System.Collections.Generic; using UnityEngine; // PlayerMove라는 클래스 만들기 public class PlayerMove : MonoBehaviour { public float maxSpeed;// 유니티 내부에서 값을 지정할 수 있는 maxSpeed라는 이름의 공간을 만듬 Rigidbody2D rigid; // rigid라는 이름을 가진, RigidBody2D형식의 변수(공간)을 만듬 SpriteRenderer sr;// sr라는 이름을 가진,..
MOONCO
'게임 개발' 태그의 글 목록