mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-10 14:44:17 +00:00
Fix bug in Mirror with twice setting client as ready
This commit is contained in:
parent
ee4afecf3a
commit
73c4dc2bb0
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue