Пример #1
0
    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]);
    }
Пример #2
0
    public override void  updateItem(GameObject item, int index)
    {
        ButtonShopListPerfab button = item.GetComponent <ButtonShopListPerfab> ();

        button.updateShopList(sample [index]);
    }