Skip to content

Commit

Permalink
fix: Add the transport first so NetworkManager doesn't add Telepathy …
Browse files Browse the repository at this point in the history
…in OnValidate
  • Loading branch information
Chris Langsenkamp committed Apr 22, 2020
1 parent 9bf816a commit bdec276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Mirror/Tests/Runtime/HostSetup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ public class HostSetup
public IEnumerator SetupHost()
{
networkManagerGo = new GameObject();
manager = networkManagerGo.AddComponent<NetworkManager>();
transport = networkManagerGo.AddComponent<MemoryTransport>();
manager = networkManagerGo.AddComponent<NetworkManager>();
Transport.activeTransport = transport;

playerGO = new GameObject();
Expand Down

0 comments on commit bdec276

Please sign in to comment.