private void UpdateRightInfo(RankS2C.RankMemberInfo info) { RefreshPlayerHeadIcon(info.portrait); lvText.text = "Lv" + info.level.ToString(); nameText.text = info.playerName; rankText.text = info.rank.ToString(); //gradeText.text = info.grading.ToString(); rateText1v1.text = info.winRate1v1.ToString() + "%"; rateText2v2.text = info.winRate2v2.ToString() + "%"; //SetStars( info.score ); }
private void RefreshMyInfo() { RankS2C.RankMemberInfo myInfo = controller.GetMyRankInfo(); UpdateRightInfo(myInfo); }