using System.Collections;
新建:
ArrayList list = new ArrayList();
添加元素:
int a = 1;
list.Add(a);
遍历:
foreach(int a in list){
Debug.Log(a);
}
统计长度:
Debug.Log (list.Count);
时间: 2024-10-10 04:07:40
using System.Collections;
新建:
ArrayList list = new ArrayList();
添加元素:
int a = 1;
list.Add(a);
遍历:
foreach(int a in list){
Debug.Log(a);
}
统计长度:
Debug.Log (list.Count);