Пример #1
0
 public override void initButton(int i)
 {
     if (nodeList [i] == null)
     {
         nodeList [i] = NGUITools.AddChild(gameObject, itemPrefab);
         nodeList [i].SetActive(true);
         nodeList [i].name = StringKit.intToFixString(i + 1);
         RankLadderItemView view = nodeList [i].GetComponent <RankLadderItemView> ();
         view.M_update(data[i], i + 1);
         view.setFatherWindow(this.fatherWindow);
     }
 }
Пример #2
0
    public override void updateItem(GameObject item, int index)
    {
        RankLadderItemView rankItem = item.GetComponent <RankLadderItemView> ();

        rankItem.M_update(data[index], index + 1);
    }