예제 #1
0
 private void OnEnable()
 {
     for (int i = 0; i < stageVilew[1].Count; i++)
     {
         NormalData data = (NormalData)stageVilew[1][i];
         Debug.Log(data.Id + " " + data.Name);
     }
 }
예제 #2
0
        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);
        }