public async UniTask <AsyncResponseData <GoldResp> > ChangeGoldAsync(ChangeGoldReq request)
        {
            var resp = await Client.SendRequestAsync <ChangeGoldReq, GoldResp>(DatabaseRequestTypes.RequestChangeGold, request);

            if (!resp.IsSuccess)
            {
                Logging.LogError(nameof(DatabaseNetworkManager), $"Cannot {nameof(ChangeGoldAsync)} status: {resp.ResponseCode}");
            }
            return(resp);
        }
コード例 #2
0
        public async UniTask <GoldResp> ChangeGoldAsync(ChangeGoldReq request)
        {
            var result = await Client.SendRequestAsync <ChangeGoldReq, GoldResp>(DatabaseRequestTypes.RequestChangeGold, request);

            if (result.ResponseCode != AckResponseCode.Success)
            {
                return(new GoldResp());
            }
            return(result.Response);
        }