Fix bug in Mirror with twice setting client as ready

This commit is contained in:
in0finite 2019-04-24 21:18:06 +02:00
parent ee4afecf3a
commit 73c4dc2bb0

View file

@ -61,13 +61,14 @@ namespace SanAndreasUnity.UI
// first start a server, and then change scene
NetManager.onlineScene = scene;
NetManager.dontListen = m_dontListen;
if (m_dedicatedServer)
NetManager.StartServer(port);
else
NetManager.StartHost(port);
NetManager.ChangeScene(scene);
//NetManager.ChangeScene(scene);
}
catch (System.Exception ex)
{