From 956bfff3ad971e4d63b88503067610fc90c6ab8d Mon Sep 17 00:00:00 2001 From: vis2k Date: Wed, 10 Mar 2021 21:08:40 +0800 Subject: [PATCH] wat --- Assets/Mirror/Tests/Runtime/ClientSceneTests_LocalPlayer.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Assets/Mirror/Tests/Runtime/ClientSceneTests_LocalPlayer.cs b/Assets/Mirror/Tests/Runtime/ClientSceneTests_LocalPlayer.cs index 183fbca7b..7689b4720 100644 --- a/Assets/Mirror/Tests/Runtime/ClientSceneTests_LocalPlayer.cs +++ b/Assets/Mirror/Tests/Runtime/ClientSceneTests_LocalPlayer.cs @@ -1,5 +1,4 @@ using System.Collections; -using System.Reflection; using NUnit.Framework; using UnityEngine; using UnityEngine.TestTools; @@ -12,9 +11,7 @@ public class ClientSceneTests_LocalPlayer : ClientSceneTestsBase public void Setup() { Debug.Assert(NetworkClient.localPlayer == null, "LocalPlayer should be null before this test"); - - PropertyInfo readyConnProperty = typeof(ClientScene).GetProperty(nameof(NetworkClient.readyConnection)); - readyConnProperty.SetValue(null, new FakeNetworkConnection()); + NetworkClient.readyConnection = new FakeNetworkConnection(); } NetworkIdentity SpawnObject(bool localPlayer)