public override void initButton(int i) { nodeList[i] = NGUITools.AddChild(gameObject, (fatherWindow as LadderRuleWindow).ruleItem); nodeList[i].gameObject.SetActive(true); nodeList[i].name = StringKit.intToFixString(i + 1); LadderHeItem button = nodeList[i].GetComponent <LadderHeItem>(); button.initData(prizeInfo[i].rangeLevel, prizeInfo[i]); }
public override void updateItem(GameObject item, int index) { LadderHeItem button = item.GetComponent <LadderHeItem> (); button.initData(prizeInfo[index].rangeLevel, prizeInfo[index]); }