using ET; namespace GFGGame { public class ShopSProxy { public static async ETTask 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; } } }