newSceneName | 要更改为的场景名称。服务器将立即更改场景,并向连接的客户端发送消息,要求它们也更改场景。 |
This causes the server to switch scenes and sets the networkSceneName.
Clients that connect to this server will automatically switch to this scene. This is called automatically if onlineScene or offlineScene are set, but it can be called from user code to switch scenes again while the game is in progress. This automatically sets clients to be not-ready. The clients must call NetworkClient.Ready again to participate in the new scene.