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

        button.updateLuckyDraw(drawList [index]);
    }