Unity List1 Unity Array List Dictionary Unity Array List Dictonary1. Arrayusing System.Collections;using System.Collections.Generic;using UnityEngine;using System;public class Test : MonoBehaviour{ // 배열 선언 방법 // 데이터형식[] 배열이름 = new 데이터형식[크기] public Item[] items = new Item[] { new Item(3, "carot"), new Item(2, "banana"), new Item(1, "apple"), new Item(4, "apple") }; void Start() { .. 2022. 10. 10. 이전 1 다음