How do I use ClientScene.Ready?

I am making a game using the new UNet system. I have a button that runs this line:

`NetworkManager.singleton.onlineScene = TargetScene;`

When the button is pressed, nothing appears to happen, but the inspector variable does change. I assume the problem is the server is switching scenes, but the clients are not following it. Therefore, I added the following to my players:

`void Update() { if(ClientScene.ready == false) { if(isLocalPlayer) { ClientScene.Ready(ClientScene.readyConnection); Debug.Log("Set as ready."); } } }`

The Debug.Log never runs. What am I doing wrong?

I found a solution on my own. The documentation for NetworkManager.ServerChangeScene is incorrect. It reads, “This is called autmatically if onlineScene or offlineScene are set.” (Also, autmatically.) In truth, it has to be called manually, like this:

`NetworkManager.singleton.ServerChangeScene(TargetScene);`