Esempio n. 1
0
    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);
    }
Esempio n. 2
0
 public void initButton(InvitePrizeItem prizeItem, int type, WindowBase father)
 {
     prizeInfo    = prizeItem;
     setType      = type;
     fatherWindow = father;
 }
Esempio n. 3
0
    public override void updateItem(GameObject item, int index)
    {
        InvitePrizeItem button = item.GetComponent <InvitePrizeItem> ();

        button.initItem(prizeInfo[index], fatherWindow);
    }