1
0
Fork 0
This repository has been archived on 2024-01-06. You can view files and clone it, but cannot push or open issues or pull requests.
MMORPG_PROJECT/Unity network UDP/Assets/scripts/network/MainClient.cs

23 lines
436 B
C#
Raw Normal View History

2016-06-22 21:45:43 +02:00
using UnityEngine;
class MainClient {
public static Client client;
public static string pseudo;
public static int connected = -1;
public static void connect (string host,int port,string pseudo) {
client = new Client(host, port);
client.connect();
connected = 0;
client.send(new MainState_Connection_Request_Packet(pseudo, 0));
}
public static void OnGUI()
{
}
}