feat: NetManHUD StopClient button for Host (#3333)

This commit is contained in:
MrGadget 2022-12-31 07:59:12 -05:00 committed by GitHub
parent be5cd6472a
commit fe4aa931e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,10 +123,16 @@ void StopButtons()
// stop host if host mode // stop host if host mode
if (NetworkServer.active && NetworkClient.isConnected) if (NetworkServer.active && NetworkClient.isConnected)
{ {
GUILayout.BeginHorizontal();
if (GUILayout.Button("Stop Host")) if (GUILayout.Button("Stop Host"))
{ {
manager.StopHost(); manager.StopHost();
} }
if (GUILayout.Button("Stop Client"))
{
manager.StopClient();
}
GUILayout.EndHorizontal();
} }
// stop client if client-only // stop client if client-only
else if (NetworkClient.isConnected) else if (NetworkClient.isConnected)