유니티 #모바일게임1 유니티 연습 1 1. 기본 스크립트using System.Collections; using System.Collections.Generic; // Data Type using UnityEngine; // 유니티가 동작하는 데 필요한 기능 제공 public class Test : MonoBehaviour // c#으로 작성한 프로그램은 클래스 단위로 관리. // 클래스명 == 스크립트명 { // Start is called before the first frame update void Start() { //캐릭터를 표시하는 처리 } // Update is called once per frame void Update() { //현재 캐릭터를 조금씩 오른쪽으로 옮기는 처리 //캐릭터 표시 뿐만 아니라 충돌 판정이나 키 조작 .. 2020. 12. 27. 이전 1 다음