Remove redundant modules

This commit is contained in:
2025-07-14 16:50:37 +08:00
parent 2a5d3b6069
commit b3e0ef5104
5 changed files with 2 additions and 189 deletions

View File

@ -1,26 +0,0 @@
using System.Threading.Tasks;
using Network;
using UnityEngine;
namespace Test
{
public class NetworkConnectionTest : MonoBehaviour
{
private async void Start()
{
await BasicTest();
}
private static async Task BasicTest()
{
var result = await UnityTcpClient.Instance.Connect("127.0.0.1", 12345);
if (result) Debug.Log("Connected to server!");
else Debug.LogError("Failed to connect to server!");
string buffer = null;
while (buffer is null) buffer = await UnityTcpClient.Instance.Receive();
Debug.Log($"Received contents: {buffer}");
}
}
}

View File

@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: 289a7efc822fe7347adfbf218522e8a2