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

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

        ctrl.fatherWindow = activityBase as BackRechargeContent;
        ctrl.updateItem(rechargeList[i], sample, notice);
    }
コード例 #2
0
    public override void updateItem(GameObject item, int index)
    {
        BackRechargeBarCtrl ctrl = item.GetComponent <BackRechargeBarCtrl> ();

        ctrl.updateItem(rechargeList[index], sample, notice);
    }