mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
feat: NetManHUD StopClient button for Host (#3333)
This commit is contained in:
parent
be5cd6472a
commit
fe4aa931e1
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user