public override void initButton(int i) { if (nodeList [i] == null) { nodeList [i] = NGUITools.AddChild(gameObject, luckyDrawBarPrefab); } ButtonShopListPerfab button = nodeList [i].GetComponent <ButtonShopListPerfab> (); button.fatherWindow = fatherWindow; button.updateShopList(sample [i]); }
public override void updateItem(GameObject item, int index) { ButtonShopListPerfab button = item.GetComponent <ButtonShopListPerfab> (); button.updateShopList(sample [index]); }