コード例 #1
0
    public override void initButton(int i)
    {
        if (nodeList [i] == null)
        {
            nodeList [i] = NGUITools.AddChild(gameObject, (fatherWindow as InviteCodeWindow).inviteCodeButtonPrefab);
        }

        nodeList [i].name = StringKit.intToFixString(i + 1);
        InviteCodeButton button = nodeList [i].GetComponent <InviteCodeButton> ();

        button.fatherWindow = fatherWindow;
        button.initUI(ic [i], i);
    }
コード例 #2
0
    public override void updateItem(GameObject item, int index)
    {
        InviteCodeButton button = item.GetComponent <InviteCodeButton> ();

        button.initUI(ic [index], index);
    }