public override void updateItem(GameObject item, int index) { if (item == null) { return; } WarChooseButton button = item.GetComponent <WarChooseButton> (); button.updateButton(missonList [index]); }
public override void initButton(int i) { if (nodeList [i] == null) { nodeList [i] = NGUITools.AddChild(gameObject, (fatherWindow as WarChooseWindow).warChooseBarPrefab); } nodeList [i].name = StringKit.intToFixString(i + 1); WarChooseButton button = nodeList [i].GetComponent <WarChooseButton> (); button.fatherWindow = fatherWindow; button.updateButton(missonList [i]); }