public override void initButton(int i) { nodeList[i] = NGUITools.AddChild(gameObject, (fatherWindow as SdkFriendWindow).awardsBarPrefab); nodeList[i].gameObject.SetActive(true); nodeList[i].name = StringKit.intToFixString(i + 1); InvitePrizeItem button = nodeList[i].GetComponent <InvitePrizeItem>(); button.initItem(prizeInfo[i], fatherWindow); }
public void initButton(InvitePrizeItem prizeItem, int type, WindowBase father) { prizeInfo = prizeItem; setType = type; fatherWindow = father; }
public override void updateItem(GameObject item, int index) { InvitePrizeItem button = item.GetComponent <InvitePrizeItem> (); button.initItem(prizeInfo[index], fatherWindow); }