public override void initButton(int i)
    {
        if (type == MYSTICAL_SHOP)
        {
            if (nodeList [i] == null)
            {
                nodeList [i] = NGUITools.AddChild(gameObject, (fatherWindow as ShopWindow).mysticalButtonPrefab);
            }
        }
        nodeList [i].name = StringKit.intToFixString(i + 1);
        ButtonMysticalGoods button = nodeList [i].GetComponent <ButtonMysticalGoods> ();

        button.gameObject.transform.localScale = new Vector3(0.8f, 0.8f, 1f);
        button.fatherWindow = fatherWindow;
        button.updateGoods(goods [i] as Goods, shopUpdate, type);
    }
    public override void updateItem(GameObject item, int index)
    {
        ButtonMysticalGoods button = item.GetComponent <ButtonMysticalGoods> ();

        button.updateGoods(goods [index] as Goods, shopUpdate, type);
    }