(client) feat:健康给予,路径优化,结算界面,商店界面 (#60)

Co-authored-by: m0_75251201 <m0_75251201@noreply.gitcode.com>
Reviewed-on: http://47.107.252.169:3000/Roguelite-Game-Developing-Team/Gen_Hack-and-Slash-Roguelite/pulls/60
This commit is contained in:
2025-10-10 14:08:23 +08:00
parent 9a797479ff
commit 16b49f3d3a
1900 changed files with 114053 additions and 34157 deletions

View File

@@ -22,23 +22,6 @@ namespace Network
catch (Exception ex)
{
Debug.LogException(ex);
return;
}
}
public async Task<byte[]> SendAndReceiveData(byte[] data)
{
try
{
await _client.SendAsync(data, data.Length);
var result = await _client.ReceiveAsync();
return result.Buffer;
}
catch (Exception ex)
{
Debug.LogException(ex);
return new byte[0];
}
}
@@ -63,5 +46,21 @@ namespace Network
_disposed = true;
}
public async Task<byte[]> SendAndReceiveData(byte[] data)
{
try
{
await _client.SendAsync(data, data.Length);
var result = await _client.ReceiveAsync();
return result.Buffer;
}
catch (Exception ex)
{
Debug.LogException(ex);
return new byte[0];
}
}
}
}
}