public override void initButton(int i) { if (nodeList [i] == null) { nodeList [i] = NGUITools.AddChild(gameObject, timeListPerfab.gameObject); } nodeList [i].name = StringKit.intToFixString(i + 1); TimeListPerfab button = nodeList [i].GetComponent <TimeListPerfab> (); button.init(timelist [i]); }
public override void updateItem(GameObject item, int index) { TimeListPerfab button = item.GetComponent <TimeListPerfab> (); button.init(timelist [index]); }