Exemple #1
0
    public override void initButton(int i)
    {
        if (nodeList [i] == null)
        {
            nodeList [i] = NGUITools.AddChild(gameObject, inviteItem);
        }

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

        button.updateActive(guildList [i], fatherWindow as GuildInviteWindow);
    }
Exemple #2
0
    public override void  updateItem(GameObject item, int index)
    {
        GuildInviteItem button = item.GetComponent <GuildInviteItem> ();

        button.updateActive(guildList [index], fatherWindow as GuildInviteWindow);
    }