if (GUILayout.Button ("Start Server"))
{
//Start a server for 32 clients using the "connectPort" given via the GUI
//Ignore the nat for now
Network.useNat = false;
Network.InitializeServer(32, connectPort);
}
if (GUILayout.Button ("Connect as client"))
{
//Connect to the "connectToIP" and "connectPort" as entered via the GUI
//Ignore the NAT for now
Network.useNat = false;
Network.Connect(connectToIP, connectPort);
}
===============================================================================