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,16 +1266,15 @@ 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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Called on clients when disconnected from a server.</summary>
|
||||
// TODO client only ever uses NetworkClient.connection. this parameter is redundant.
|
||||
|
Loading…
Reference in New Issue
Block a user