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