Beispiel #1
0
    public void StartGame()
    {
        if (!isServer)
        {
            return;
        }

        realLobbyManager.StartGame();
    }
        private Task StartGame(SocketBase socket)
        {
            StartGameRequest startGameRequest = socket as StartGameRequest ?? throw new ArgumentNullException(nameof(socket));

            List <Player> players = _lobbyManager.GetPlayers();

            _gameManager.InitializeGame(players);
            return(_lobbyManager.StartGame(startGameRequest));
        }