public async UniTask <CharacterResp> CreateCharacterAsync(CreateCharacterReq request) { var result = await Client.SendRequestAsync <CreateCharacterReq, CharacterResp>(DatabaseRequestTypes.RequestCreateCharacter, request); if (result.ResponseCode != AckResponseCode.Success) { return(new CharacterResp()); } return(result.Response); }
public async UniTask <AsyncResponseData <CharacterResp> > CreateCharacterAsync(CreateCharacterReq request) { var resp = await Client.SendRequestAsync <CreateCharacterReq, CharacterResp>(DatabaseRequestTypes.RequestCreateCharacter, request); if (!resp.IsSuccess) { Logging.LogError(nameof(DatabaseNetworkManager), $"Cannot {nameof(CreateCharacterAsync)} status: {resp.ResponseCode}"); } return(resp); }