From 21693d10fbec7cd5acf86cd7e77592af77939c43 Mon Sep 17 00:00:00 2001 From: James Frowen Date: Wed, 21 Aug 2024 18:50:09 +0100 Subject: [PATCH] fix: fixing recorder not taking reference to client --- Assets/Mirage.Profiler/Runtime/NetworkProfilerRecorder.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Mirage.Profiler/Runtime/NetworkProfilerRecorder.cs b/Assets/Mirage.Profiler/Runtime/NetworkProfilerRecorder.cs index 61cecfc..87011c0 100644 --- a/Assets/Mirage.Profiler/Runtime/NetworkProfilerRecorder.cs +++ b/Assets/Mirage.Profiler/Runtime/NetworkProfilerRecorder.cs @@ -18,7 +18,7 @@ public class NetworkProfilerRecorder : MonoBehaviour public static NetworkProfilerRecorder Instance { get; private set; } public NetworkServer Server; - public NetworkServer Client; + public NetworkClient Client; /// /// instance being used for profiler @@ -107,7 +107,7 @@ private void ServerStopped() instance = null; } - private void ClientStopped(INetworkPlayer arg0) + private void ClientStopped(ClientStoppedReason _) { if (instance == (object)Client) instance = null;