Ejemplo n.º 1
0
 void AddPointItem()
 {
     UnityEngine.GameObject item = CrossObjectHelper.TryCastObject <UnityEngine.GameObject>(ArkCrossEngine.ResourceSystem.GetSharedResource("UI/PartnerPvp/RankingCell"));
     if (item != null)
     {
         RankingCell cell = item.GetComponent <RankingCell>();
         if (cell != null)
         {
             cell.InitItemInfo(null);
         }
     }
     item = NGUITools.AddChild(masterGrid.gameObject, item);
     itemList.Add(item);
 }
Ejemplo n.º 2
0
 //初始化 上下item
 void InitUpAndDownItem(ArenaTargetInfo info)
 {
     if (upItem != null)
     {
         RankingCell cell = upItem.GetComponent <RankingCell>();
         if (cell != null)
         {
             cell.InitItemInfo(info);
         }
     }
     if (downItem != null)
     {
         RankingCell cell = downItem.GetComponent <RankingCell>();
         if (cell != null)
         {
             cell.InitItemInfo(info);
         }
     }
 }