예제 #1
0
 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);
     }
 }
예제 #2
0
    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));
        }
    }
예제 #3
0
 public void SetInfoForMyRanking(ProtoData.RaidRankingData.RankingData rankingData)
 {
     myRanking.SetInfo(rankingData, tierSpriteList.Find(x => (int)x.tier == rankingData.tier));
 }