From 505a8eca43e2115e87aef27127e899fb7854e002 Mon Sep 17 00:00:00 2001 From: MrGadget1024 <9826063+MrGadget1024@users.noreply.github.com> Date: Thu, 26 Jan 2023 03:29:28 -0500 Subject: [PATCH] RemoteStats, NetworkStats minor changes --- Assets/Mirror/Components/NetworkStatistics.cs | 2 +- Assets/Mirror/Components/RemoteStatistics.cs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Assets/Mirror/Components/NetworkStatistics.cs b/Assets/Mirror/Components/NetworkStatistics.cs index 5d09fd0ef..fc21e9b36 100644 --- a/Assets/Mirror/Components/NetworkStatistics.cs +++ b/Assets/Mirror/Components/NetworkStatistics.cs @@ -148,7 +148,7 @@ void OnGUI() { // create main GUI area // 105 is below NetworkManager HUD in all cases. - GUILayout.BeginArea(new Rect(10, 105, 215, 300)); + GUILayout.BeginArea(new Rect(10, 120, 215, 300)); // show client / server stats if active if (NetworkClient.active) OnClientGUI(); diff --git a/Assets/Mirror/Components/RemoteStatistics.cs b/Assets/Mirror/Components/RemoteStatistics.cs index 6e872b169..ccdf0f396 100644 --- a/Assets/Mirror/Components/RemoteStatistics.cs +++ b/Assets/Mirror/Components/RemoteStatistics.cs @@ -121,6 +121,7 @@ void LoadPassword() try { serverPassword = File.ReadAllText(path); + Debug.Log($"RemoteStatistics: Password is {serverPassword}"); } catch (Exception exception) { @@ -209,6 +210,7 @@ void UpdateServer() )); } } + void UpdateClient() { if (Input.GetKeyDown(hotKey))