Unity 기본9 - enum, struct
1. enum 저장되는 데이터에 이름을 붙여서 읽기 편한 코드를 만드는 것 내부적으로는 int로 정수형과 같다 0,1,2,... 로 되는데.. arrow - 0 bullet - 1 missile - 2 ... 파이썬의 enumerate 같은 거인듯? using System.Collections; using System.Collections.Generic; using UnityEngine; public class HelloWorld : MonoBehaviour { enum ProjectileKind { Arrow, Bullet, Missile } // Start is called before the first frame update void Start() { ProjectileKind kind; kind ..