public void SetRankData(GameCmd.stAnswerOrderListRelationUserCmd_S.Data info) { uint t = (uint)DataManager.Manager <RankManager>().OrderType; rank.text = this.info.rank.ToString(); palyerID = this.info.thisid; name.text = this.info.name.ToString(); if (t >= 11 && t <= 15) { line3.text = this.info.clan.ToString(); line4.text = this.info.type.ToString(); line5.text = this.info.yiju.ToString(); } else { uint job = 0; if (uint.TryParse(info.type, out job)) { SelectRoleDataBase data = table.SelectRoleDataBase.Where((GameCmd.enumProfession)job, (GameCmd.enmCharSex) 1); if (data != null) { line3.text = data.professionName; } } else { line3.text = info.type; } line4.text = this.info.clan.ToString(); line5.text = this.info.yiju.ToString(); } }
public override void SetGridData(object data) { base.SetGridData(data); this.info = data as GameCmd.stAnswerOrderListRelationUserCmd_S.Data; if (info != null) { if (rankIndex < 3) { if (rankIndex == 0) { rankBg.gameObject.SetActive(true); rankBg.spriteName = "tubiao_paiming_jin"; rankBg.MakePixelPerfect(); } else if (rankIndex == 1) { rankBg.gameObject.SetActive(true); rankBg.spriteName = "tubiao_paiming_yin"; rankBg.MakePixelPerfect(); } else if (rankIndex == 2) { rankBg.gameObject.SetActive(true); rankBg.spriteName = "tubiao_paiming_tong"; rankBg.MakePixelPerfect(); } } else { rankBg.gameObject.SetActive(false); } SetRankData(info); } if (bg != null) { if (rankIndex % 2 == 0) { bg.spriteName = "biankuang_bantou_baikuai"; } else { bg.spriteName = "biankuang_bantou_danlan"; } } }