|
I downloaded Unity3d's Networking Example project and I put out the 3rd person scene online. when me and my friends tried to join it wouldnt connect.please if you have any suggustions. here is code. //DontDestroyOnLoad(this); var remoteIP = "127.0.0.1"; var remotePort = 25001; var listenPort = 25000; var useNAT = false; var havemaster = false; function Awake() { if (havemaster == true){ if (FindObjectOfType(ConnectGuiMasterServer)) this.enabled = false; } } function OnGUI () { GUILayout.Space(10);
} function OnConnectedToServer() {
// Notify our objects that the level and the network is ready
for (var go in FindObjectsOfType(GameObject))
go.SendMessage("OnNetworkLoadedLevel", SendMessageOptions.DontRequireReceiver); function OnDisconnectedFromServer () { if (this.enabled != false) Application.LoadLevel(Application.loadedLevel); else FindObjectOfType(NetworkLevelLoad).OnDisconnectedFromServer(); }_________________________
(comments are locked)
|

wont work for me either