Tests: remove last dependencies on .readyConnection

This commit is contained in:
vis2k 2021-03-13 12:35:45 +08:00
parent e42ecab505
commit dd5c137c7b
2 changed files with 2 additions and 2 deletions

View File

@ -635,7 +635,7 @@ public void ApplyPayload_LocalPlayerAddsIdentityToConnection()
NetworkClient.ApplySpawnPayload(identity, msg);
Assert.That(NetworkClient.localPlayer, Is.EqualTo(identity));
Assert.That(NetworkClient.readyConnection.identity, Is.EqualTo(identity));
Assert.That(NetworkClient.connection.identity, Is.EqualTo(identity));
}
[Test]

View File

@ -61,7 +61,7 @@ protected T CreateHostObject<T>(bool spawnWithAuthority) where T : NetworkBehavi
NetworkIdentity netIdentity = gameObject.AddComponent<NetworkIdentity>();
// host mode object needs a connection to server for commands to work
netIdentity.connectionToServer = NetworkClient.readyConnection;
netIdentity.connectionToServer = NetworkClient.connection;
T behaviour = gameObject.AddComponent<T>();