mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
NetworkManager.OnServerConnectInternal: simplify code
This commit is contained in:
parent
c5236f5504
commit
512c7ff521
@ -539,8 +539,7 @@ internal void OnServerConnectInternal(NetworkConnection conn, ConnectMessage con
|
|||||||
|
|
||||||
if (networkSceneName != "" && networkSceneName != offlineScene)
|
if (networkSceneName != "" && networkSceneName != offlineScene)
|
||||||
{
|
{
|
||||||
SceneMessage msg = new SceneMessage(networkSceneName);
|
conn.Send(new SceneMessage(networkSceneName));
|
||||||
conn.Send(msg);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
OnServerConnect(conn);
|
OnServerConnect(conn);
|
||||||
|
Loading…
Reference in New Issue
Block a user