Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b77d0ef

Browse files
author
Timothy Edrick Burhan
committed
mirror feat: if is not sever, update the latency
1 parent 43093d7 commit b77d0ef

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎mirror/Assets/_Benchmark/Scripts/GUIGame.cs‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ protected override void UpdateNetworkStats()
4949

5050
if (!_networkManager.isNetworkActive) return;
5151

52+
if (_networkManager.mode == NetworkManagerMode.ServerOnly)
53+
{
54+
_textLatency.SetText("Latency: 0ms (Server)");
55+
return;
56+
}
57+
5258
_textLatency.SetText("Latency: {0}ms", (float)NetworkTime.rtt);
5359
}
5460
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /