| 12345678910111213141516171819202122 | using ET;namespace GFGGame{    public class ShopSProxy    {        public static async ETTask<bool> ShopBuy(int shopType, int buyId, int buyCount)        {            M2C_ShopBuy response = null;            response = (M2C_ShopBuy)await MessageHelper.SendToServer(new C2M_ShopBuy() { ShopType = shopType, BuyId = buyId, BuyCount = buyCount });            if (response != null)            {                if (response.Error == ErrorCode.ERR_Success)                {                    // EventAgent.DispatchEvent(ConstMessage.SHOP_BUY);                    return true;                }            }            return false;        }    }}
 |