Exemplo n.º 1
0
    public override void initButton(int i)
    {
        nodeList[i] = NGUITools.AddChild(gameObject, (fatherWindow as GodsWarIntegralAwardWindow).godsWarIntegralItemPrefab);
        nodeList[i].SetActive(true);
        GodsWarIntegralAwardItem arenaItem = nodeList[i].GetComponent <GodsWarIntegralAwardItem>();

        arenaItem.initItem(awards[i], win, callback);
    }
Exemplo n.º 2
0
    public override void updateItem(GameObject item, int index)
    {
        GodsWarIntegralAwardItem arenaItem = item.GetComponent <GodsWarIntegralAwardItem>();

        arenaItem.initItem(awards[index], win, callback);
    }