public override void DoClickEvent()
 {
     base.DoClickEvent();
     if (goods.getGoodsType() == GoodsType.CARD)
     {
         UiManager.Instance.openWindow <CardBookWindow> ((win) => {
             Card card = CardManagerment.Instance.createCard(goods.getGoodsSid());
             win.init(card, CardBookWindow.OTHER, null);
         });
     }
     else if (goods.getGoodsType() == GoodsType.EQUIP)
     {
         UiManager.Instance.openWindow <EquipAttrWindow> ((win) => {
             Equip eq = EquipManagerment.Instance.createEquip("", goods.getGoodsSid(), 0, 0, 0);
             win.Initialize(eq, EquipAttrWindow.OTHER, null);
         });
     }
     else if (goods.getGoodsType() == GoodsType.TOOL)
     {
         Prop prop = PropManagerment.Instance.createProp(goods.getGoodsSid(), goods.getGoodsShowNum());
         UiManager.Instance.openDialogWindow <PropBuyWindow> ((win) => {
             win.Initialize(prop, goods, () => {
                 MysticalShopBuyFPort fport = FPortManager.Instance.getFPort("MysticalShopBuyFPort") as MysticalShopBuyFPort;
                 fport.buyGoods(goods.sid, goods.showIndex + 1, buyCallBack);
             });
         });
     }
     else if (goods.getGoodsType() == GoodsType.STARSOUL)
     {
         StarSoul starSoul = StarSoulManager.Instance.createStarSoul(goods.getGoodsSid());
         UiManager.Instance.openDialogWindow <StarSoulAttrWindow> ((win) => {
             win.Initialize(starSoul, StarSoulAttrWindow.AttrWindowType.None);
         });
     }
 }
 public GameObject stars;                   //星星
 public void buy(MessageHandle msg)
 {
     if (msg.msgEvent == msg_event.dialogCancel)
     {
         return;
     }
     goods = msg.msgInfo as Goods;
     if (intoType == MYSTICAL_SHOP)
     {
         MysticalShopBuyFPort fport = FPortManager.Instance.getFPort("MysticalShopBuyFPort") as MysticalShopBuyFPort;
         fport.buyGoods((msg.msgInfo as Goods).sid, (msg.msgInfo as Goods).showIndex + 1, buyCallBack);
     }
 }