Пример #1
0
    public override void initButton(int i)
    {
        if (nodeList [i] == null)
        {
            nodeList [i] = NGUITools.AddChild(gameObject, applyItem);
        }

//		nodeList [i].transform.parent = transform;
//		nodeList [i].transform.localPosition = Vector3 .zero;
//		nodeList [i].transform.localScale = Vector3 .one;
        nodeList [i].name = StringKit.intToFixString(i + 1);
        GuildApplyItem button = nodeList [i].GetComponent <GuildApplyItem> ();

        button.button.fatherWindow = fatherWindow;
        button.updateActive(guildList [i]);
    }
Пример #2
0
    public override void  updateItem(GameObject item, int index)
    {
        GuildApplyItem button = item.GetComponent <GuildApplyItem> ();

        button.updateActive(guildList [index]);
    }