Mercurial > hg > Database > jungle-sharp
view Test/junge-main/data/list/ListTest.cs @ 20:1f99e150f336
fix folder and add Object Mapper.
author | Kazuma Takeda |
---|---|
date | Thu, 15 Dec 2016 22:52:48 +0900 |
parents | |
children | 9588ad364fdd |
line wrap: on
line source
using UnityEngine; using System.Collections; public class ListTest : MonoBehaviour { public List<int> list; // Use this for initialization void Start () { list = new List <int>(); for(int i=0; i< 5; i++){ list = list.add(i, i); } foreach (var l in list){ print(l); } } // Update is called once per frame void Update () { } }