Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

Unet problem. The client always close when the connection is made with the host

$
0
0
So, this is the problem. I dont have a idea why this happen, and on the editor only this appears: ![alt text][1] [1]: /storage/temp/52226-erro-unity.png And this is the code that I'm using: #pragma strict import UnityEngine.Networking; import UnityEngine.UI; class NetworkManager_Custom extends NetworkManager { function IniciarServer() { definirPorta(); NetworkManager.singleton.StartHost(); } function EntrarNoJogo() //ipe : String, port : int { definirIP(); definirPorta(); NetworkManager.singleton.StartClient(); } function definirPorta() { NetworkManager.singleton.networkPort = 7777; } function definirIP() { NetworkManager.singleton.networkAddress = "localhost"; } }

Viewing all articles
Browse latest Browse all 7934

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>