public void Inits(CardResultShowNode.YuepaiLogPlayerInfo info)//是否赢最多
 {
     winObj.SetActive(info.isMax);
     StartCoroutine(MiscUtils.DownloadImage(info.headIcon, spr =>
     {
         headIcon.sprite  = spr;
         info.headIconSpr = spr;
     }));
     nameLb.text      = info.nickname;
     allResultLb.text = info.allResult > 0 ? "+" + info.allResult : info.allResult.ToString();
 }
    void Load(YuePaiTable info)
    {
        //加载总体
        UIUtils.DestroyChildren(vertical_parent);
        for (int i = 0; i < info.yuePaiLog[0].YuePaiOther.Count; i++)
        {
            YuePaiOther playerInfo = info.yuePaiLog[0].YuePaiOther[i];
            int         allRessult = 0;
            for (int j = 0; j < info.yuePaiLog.Count; j++)
            {
                for (int k = 0; k < info.yuePaiLog[j].YuePaiOther.Count; k++)
                {
                    if (info.yuePaiLog[j].YuePaiOther[k].userId == playerInfo.userId)
                    {
                        allRessult += info.yuePaiLog[j].YuePaiOther[k].score;
                    }
                }
            }
            CardResultShowNode.YuepaiLogPlayerInfo logInfo = new CardResultShowNode.YuepaiLogPlayerInfo();
            logInfo.userId    = playerInfo.userId;
            logInfo.nickname  = playerInfo.userName;
            logInfo.allResult = allRessult; print(playerInfo.icon);
            logInfo.headIcon  = playerInfo.icon;
            playerInfos.Add(logInfo);
        }
        CardResultShowNode.YuepaiLogPlayerInfo maxInfos = ArrayHelper.Max <CardResultShowNode.YuepaiLogPlayerInfo, int>(playerInfos.ToArray(), p => p.allResult);
        maxInfos.isMax = true;
        for (int i = 0; i < playerInfos.Count; i++)
        {
            LoadVerticalResultItem(playerInfos[i]);
        }

        info.yuePaiLog.Sort((a, b) =>
        {
            return(a.curr_round.CompareTo(b.curr_round));
        });
        //加载详情
        for (int i = 0; i < info.yuePaiLog.Count; i++)
        {
            YuePaiLog result = info.yuePaiLog[i];
            LoadHorizontalResultItem(result);
        }
    }
 void LoadVerticalResultItem(CardResultShowNode.YuepaiLogPlayerInfo info)
 {
     Instantiate(vertical_prefab, vertical_parent).GetComponent <YuepaiResultItem>().Inits(info);
 }