AdditiveLevels Example - Portal.cs typo

This commit is contained in:
MrGadget1024 2023-01-24 15:16:39 -05:00
parent 02369e0fd5
commit debc78310d

View File

@ -79,7 +79,7 @@ IEnumerator SendPlayerToNewScene(GameObject player)
// Tell client to load the new subscene with custom handling (see NetworkManager::OnClientChangeScene). // Tell client to load the new subscene with custom handling (see NetworkManager::OnClientChangeScene).
conn.Send(new SceneMessage { sceneName = destinationScene, sceneOperation = SceneOperation.LoadAdditive, customHandling = true }); conn.Send(new SceneMessage { sceneName = destinationScene, sceneOperation = SceneOperation.LoadAdditive, customHandling = true });
//Debug.Log($"SendPlayerToNewScene AddPlayerForConnection {conn} netId:{conn.identity.netId}"); //Debug.Log($"SendPlayerToNewScene AddPlayerForConnection {conn}");
NetworkServer.AddPlayerForConnection(conn, player); NetworkServer.AddPlayerForConnection(conn, player);
// host client would have been disabled by OnTriggerEnter above // host client would have been disabled by OnTriggerEnter above