private void OnEnable() { for (int i = 0; i < stageVilew[1].Count; i++) { NormalData data = (NormalData)stageVilew[1][i]; Debug.Log(data.Id + " " + data.Name); } }
public void CreateData() { List <StageDatas> datas = new List <StageDatas>(); for (int i = 0; i < 5; i++) { NormalData data = new NormalData(i, "NormalData " + i); datas.Add(data); } stageVilew.Add(1, datas); }