Unity 오류..
TLS Allocator ALLOC_TEMP_TLS, underlying allocator ALLOC_TEMP_MAIN has unfreed allocations, size 37
메뉴 Assets -> Reimport All
pixels per unit: unit을 몇 pixel로 할 건지 (>> 작을 수록 커짐)
카드 16개 4x4 배치하기
x = i % 4;
y = i / 4;
array 랜덤으로 정렬하기
array.OrderBy(정렬 조건).ToArray
int[] arr;
arr.OrderBy(x=> RandomRange(0f, 7f)).ToArray; // x: 배열 전체를 훑음.
Image 스크립트로 가져오기:
Resources 폴더에 넣고 -> Resources.Load< Sprite>("");