public override void initButton(int i) { if (nodeList [i] == null) { nodeList [i] = NGUITools.AddChild(gameObject, (fatherWindow as GuildAppWindow).guildAppItem); } nodeList [i].name = StringKit.intToFixString(i + 1); GuildAppItem button = nodeList [i].GetComponent <GuildAppItem> (); button.updateInfo(appList [i], fatherWindow as GuildAppWindow); }
public override void updateItem(GameObject item, int index) { GuildAppItem button = item.GetComponent <GuildAppItem> (); button.updateInfo(appList [index], fatherWindow as GuildAppWindow); }