mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Tests: CreateNetworkedAndSpawn remove unnecesary .connetionToServer setup. it's not necessary anymore.
This commit is contained in:
parent
b29a76d242
commit
f12082d0a3
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user