it leader
article thumbnail
[Unity3D] List 사용법 및 매쏘드 정리
코딩공부/Unity3D 2016. 2. 27. 14:20

List 선언 List 변수명 = new List(); List num = new List(); 배열 추가 Add List num = new List(); num.Add(2); 배열 중간에 집어 넣기 Insert ex ) list.Insert(인덱스, 요소 ); class Program{ static void Main() { List dogs = new List(); // Example list. dogs.Add("spaniel"); // Contains: spaniel. dogs.Add("beagle"); // Contains: spaniel, beagle. dogs.Insert(1, "dalmatian"); // Spaniel, dalmatian, beagle. foreach (string dog i..