mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
syntax & formatting
This commit is contained in:
parent
c8d97b9063
commit
296236ff0c
@ -1266,14 +1266,13 @@ public virtual void OnClientConnect(NetworkConnection conn)
|
||||
// clientLoadedScene flag to prevent it.
|
||||
if (!clientLoadedScene)
|
||||
{
|
||||
// Ready/AddPlayer is usually triggered by a scene load
|
||||
// completing. if no scene was loaded, then Ready/AddPlayer it
|
||||
// here instead.
|
||||
if (!NetworkClient.ready) NetworkClient.Ready();
|
||||
// Ready/AddPlayer is usually triggered by a scene load completing.
|
||||
// if no scene was loaded, then Ready/AddPlayer it here instead.
|
||||
if (!NetworkClient.ready)
|
||||
NetworkClient.Ready();
|
||||
|
||||
if (autoCreatePlayer)
|
||||
{
|
||||
NetworkClient.AddPlayer();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user