public override void initButton(int i) { nodeList[i] = NGUITools.AddChild(gameObject, (fatherWindow as GodsWarIntegralRankAwardWindow).itemPrefab); nodeList[i].SetActive(true); GodsWarRankAwardItem item = nodeList[i].GetComponent <GodsWarRankAwardItem>(); item.init(awards[i], i, win); }
public override void updateItem(GameObject item, int index) { GodsWarRankAwardItem items = item.GetComponent <GodsWarRankAwardItem>(); items.init(awards[index], index, win); }