mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Tests: remove last dependencies on .readyConnection
This commit is contained in:
parent
e42ecab505
commit
dd5c137c7b
@ -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]
|
||||
|
@ -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>();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user