public void SetInfoForLastHitRnaking(ProtoData.RaidRankingData.RankingData rankingData) { if (rankingData != null) { lastHitRanking.SetInfo(rankingData, tierSpriteList.Find(x => (int)x.tier == rankingData.tier)); } else { lastHitRanking.SetInfo(null, null); } }
public void SetInfo(List <ProtoData.RaidRankingData.RankingData> rankingDataList) { for (int i = 0; i < content.childCount; i++) { Destroy(content.GetChild(i).gameObject); } content.DetachChildren( ); foreach (var rankingData in rankingDataList) { GameObject obj = Instantiate(Prefab_RankContainer, content); RankContainer container = obj.GetComponent <RankContainer> ( ); container.SetInfo(rankingData, tierSpriteList.Find(x => (int)x.tier == rankingData.tier)); } }
public void SetInfoForMyRanking(ProtoData.RaidRankingData.RankingData rankingData) { myRanking.SetInfo(rankingData, tierSpriteList.Find(x => (int)x.tier == rankingData.tier)); }