Closed benchang02 closed 6 years ago
strIP = GUILayout.TextField(strIP); if (GUILayout.Button ("JOIN this IP", GUILayout.Width(100 )) && !Network.isClient) { PlayerPrefs.SetString("ip", strIP); LogManager.Log("try to join "+strIP+":7890"); Network.Connect(strIP, 7890); CameraBackgroundSkybox(); state = AppState.Game; }
same as the autoload for server. load the ip from the user preferences, and call whatever needs to be done to connect to host.