(client) feat: Implement ProtoBuf and gRPC Client (#25)

This commit is contained in:
2025-07-14 16:54:10 +08:00
parent b370070135
commit d30278da1d
29 changed files with 1937 additions and 236 deletions

View File

@ -0,0 +1,19 @@
using Network;
using UnityEngine;
namespace Test
{
public class GrpcClientTest : MonoBehaviour
{
private async void Start()
{
var serverInfo = await GrpcClient.Instance.GetServerInfo();
Debug.Log($"Received info from server: {serverInfo}");
var loginResult = await GrpcClient.Instance.Login("野兽先辈", "114514");
Debug.Log($"Received login result: {loginResult.Result}");
}
}
}