diff --git a/Assets/Mirror/Tests/Editor/InterestManagementTests_Distance.cs b/Assets/Mirror/Tests/Editor/InterestManagementTests_Distance.cs index de66640a5..9d8cf35a6 100644 --- a/Assets/Mirror/Tests/Editor/InterestManagementTests_Distance.cs +++ b/Assets/Mirror/Tests/Editor/InterestManagementTests_Distance.cs @@ -14,8 +14,7 @@ public override void SetUp() base.SetUp(); // create AOI GameObject - CreateGameObject(out GameObject go); - aoi = go.AddComponent(); + CreateGameObject(out GameObject go, out aoi); aoi.visRange = 10; // setup server aoi since InterestManagement Awake isn't called NetworkServer.aoi = aoi;