i really dont know how to script so if someone can help me with this script i would be really grateful
I got a button that start a server but is probbably not correct
if (GUI.Button (Rect (25, 80, 100, 30), "Start Server"))
{
Network.InitializeServer(32, 25002, !Network.HavePublicAddress());
MasterServer.RegisterHost("MyUniqueGameType", "NetworkName", "l33t game for all");
}
And i got the Connect button
if (GUI.Button (Rect (25, 160, 100, 30), "Connect")) {
This is the bit i dont know how to do. how can i check if there is a server started?
Thanks in advance