Пример #1
0
    public void makedata()
    {
        // 서버통신
        System.Threading.Thread.Sleep(1000);
        A = new ChatTest();
        List <ChatTest.Data> temp = new List <ChatTest.Data>();

        //이 부분만 수정 하면 됨
        temp = A.revChatmy();

        ItemList2 = new List <Item>();

        for (int i = 0; i < temp.Count; i++)
        {
            Debug.Log("ok10");
            Item tempData = new Item();
            tempData.idx     = temp[i].idx;
            tempData.Name    = temp[i].mapname;
            tempData.User    = temp[i].username;
            tempData.Mapsize = temp[i].size;
            tempData.count   = temp[i].total_count;
            tempData.rating  = temp[i].rating;

            tempData.mapscore = temp[i].mapscore;

            tempData.Mode        = temp[i].mode;
            tempData.min_        = temp[i].min;
            tempData.OnItemClick = null;
            ItemList2.Add(tempData);
        }
        // 각 데이터 넣는것
    }