mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 19:10:32 +00:00
RemoteStats, NetworkStats minor changes
This commit is contained in:
parent
f16e1973c0
commit
505a8eca43
@ -148,7 +148,7 @@ void OnGUI()
|
|||||||
{
|
{
|
||||||
// create main GUI area
|
// create main GUI area
|
||||||
// 105 is below NetworkManager HUD in all cases.
|
// 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
|
// show client / server stats if active
|
||||||
if (NetworkClient.active) OnClientGUI();
|
if (NetworkClient.active) OnClientGUI();
|
||||||
|
@ -121,6 +121,7 @@ void LoadPassword()
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
serverPassword = File.ReadAllText(path);
|
serverPassword = File.ReadAllText(path);
|
||||||
|
Debug.Log($"RemoteStatistics: Password is {serverPassword}");
|
||||||
}
|
}
|
||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
@ -209,6 +210,7 @@ void UpdateServer()
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpdateClient()
|
void UpdateClient()
|
||||||
{
|
{
|
||||||
if (Input.GetKeyDown(hotKey))
|
if (Input.GetKeyDown(hotKey))
|
||||||
|
Loading…
Reference in New Issue
Block a user