public override void initButton(int i) { nodeList [i] = NGUITools.AddChild(gameObject, (fatherWindow as LaddersAwardWindow).prefab_awardItem); nodeList [i].SetActive(true); nodeList [i].name = StringKit.intToFixString(i + 1); Ladders_AwardItem button = nodeList [i].GetComponent <Ladders_AwardItem> (); button.parentScrollView = scrollView; button.M_update(awards[i]); }
public override void updateItem(GameObject item, int index) { Ladders_AwardItem button = item.GetComponent <Ladders_AwardItem> (); button.M_update(awards[index]); }