NetworkManager.OnServerConnectInternal: simplify code

This commit is contained in:
vis2k 2019-04-06 13:18:21 +02:00
parent c5236f5504
commit 512c7ff521

View File

@ -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);