void AddGoods(int goodsId)
        {
            m2s_exchangeshop msg = new m2s_exchangeshop();

            msg.shopid = goodsId;
            M2SInfo m2sInfo = new M2SInfo(msg, AddGoodsSuccess, WebRequestFail);

            GameEntry.WebRequestToServerComponent.SendJsonMsg(m2sInfo);
        }
示例#2
0
        void AddGoods(int goodsId)
        {
            if (goodsId == 0)
            {
                return;
            }

            redPoint.SetActive(true);
            add = true;
            count++;
            m2s_exchangeshop msg = new m2s_exchangeshop();

            msg.shopid = goodsId;
            M2SInfo m2sInfo = new M2SInfo(msg, AddGoodsSuccess, WebRequestFail);

            GameEntry.WebRequestToServerComponent.SendJsonMsg(m2sInfo);
        }