benchang02 / NewAtlantis

http://www.newatlantis.world/
0 stars 0 forks source link

config file to connect to a specific IP at launch #10

Closed benchang02 closed 6 years ago

benchang02 commented 6 years ago

same as the autoload for server. load the ip from the user preferences, and call whatever needs to be done to connect to host.

benchang02 commented 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; }