Exemplo n.º 1
0
    GameObject initItem(int i)
    {
        GameObject     item   = NGUITools.AddChild(scrapContent.gameObject, scrapPrefab);
        EquipScrapView button = item.GetComponent <EquipScrapView> ();

        button.fawin = this;
        button.init(scrapList[i]);

        return(item);
    }
Exemplo n.º 2
0
    GameObject onUpdateItem(GameObject item, int i)
    {
        if (item == null)
        {
            item = NGUITools.AddChild(scrapContent.gameObject, scrapPrefab);
        }

        EquipScrapView button = item.GetComponent <EquipScrapView> ();

        button.fawin = this;
        button.init(scrapList[i]);

        return(item);
    }