RemoteTestBase: reuse ConnectHostClientBlockingAuthenticatedAndReady

This commit is contained in:
vis2k 2021-08-07 19:21:36 +08:00
parent 964188868d
commit 664f21ba45

View File

@ -9,13 +9,7 @@ public void Setup()
{
// start server/client
NetworkServer.Listen(1);
NetworkClient.ConnectHost();
NetworkServer.SpawnObjects();
NetworkServer.ActivateHostScene();
NetworkClient.ConnectLocalServer();
NetworkServer.localConnection.isAuthenticated = true;
NetworkClient.connection.isAuthenticated = true;
NetworkClient.Ready();
ConnectHostClientBlockingAuthenticatedAndReady();
}
}
}