Add party to lobby menu

This commit is contained in:
2024-09-09 20:21:03 +02:00
parent 8529ebb4a9
commit 9250b7b5dd
13 changed files with 4207 additions and 1078 deletions

View File

@@ -62,6 +62,19 @@ public class GameManager : NetworkBehaviour
networkManager.StartHost();
}
public void LeaveGame()
{
networkManager.Shutdown(true);
//if (networkManager.IsHost)
//{
// networkManager.Shutdown(true);
//}
//else
//{
// networkManager.
//}
}
private void OnClientStarted()
{
OnConnected?.Invoke();