public override void initButton(int i) { if (nodeList [i] == null) { nodeList [i] = NGUITools.AddChild(gameObject, (activityBase as BackRechargeContent).backRechargePrefab); } nodeList [i].name = StringKit.intToFixString(i + 1); BackRechargeBarCtrl ctrl = nodeList [i].GetComponent <BackRechargeBarCtrl> (); ctrl.fatherWindow = activityBase as BackRechargeContent; ctrl.updateItem(rechargeList[i], sample, notice); }
public override void updateItem(GameObject item, int index) { BackRechargeBarCtrl ctrl = item.GetComponent <BackRechargeBarCtrl> (); ctrl.updateItem(rechargeList[index], sample, notice); }