Tests: CreateNetworkedAndSpawn remove unnecesary .connetionToServer setup. it's not necessary anymore.

This commit is contained in:
vis2k 2021-08-07 18:50:31 +08:00
parent b29a76d242
commit f12082d0a3

View File

@ -149,9 +149,6 @@ protected void CreateNetworkedAndSpawn<T>(out GameObject go, out NetworkIdentity
CreateNetworked(out go, out identity, out component);
// host mode object needs a connection to server for commands to work
identity.connectionToServer = NetworkClient.connection;
// spawn
NetworkServer.Spawn(go, ownerConnection);
ProcessMessages();