Tests: SerializeAndDeserializeObjectsDelta doesn't rely on host mode anymore

This commit is contained in:
vis2k 2022-02-02 11:54:31 +08:00
parent 3772f0b8e3
commit 5ba53185f2

View File

@ -827,9 +827,10 @@ public void SerializeAndDeserializeObjectsDelta()
// SyncLists are only set dirty while owner has observers. // SyncLists are only set dirty while owner has observers.
// need a connection. // need a connection.
NetworkServer.Listen(1); NetworkServer.Listen(1);
ConnectHostClientBlockingAuthenticatedAndReady(); ConnectClientBlockingAuthenticatedAndReady(out _);
CreateNetworkedAndSpawn(out GameObject _, out NetworkIdentity _, out NetworkBehaviourWithSyncVarsAndCollections comp); CreateNetworkedAndSpawn(out _, out _, out NetworkBehaviourWithSyncVarsAndCollections comp,
out _, out _, out _);
// add to synclist // add to synclist
comp.list.Add(42); comp.list.Add(42);