mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
AdditiveLevels Example - Portal.cs typo
This commit is contained in:
parent
02369e0fd5
commit
debc78310d
@ -79,7 +79,7 @@ IEnumerator SendPlayerToNewScene(GameObject player)
|
||||
// Tell client to load the new subscene with custom handling (see NetworkManager::OnClientChangeScene).
|
||||
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);
|
||||
|
||||
// host client would have been disabled by OnTriggerEnter above
|
||||
|
Loading…
Reference in New Issue
Block a user