/// <summary> /// Called after user clicks on "Create Game"-Button /// </summary> public void OnCreateGameClicked() { StartMatchMaker(); // Server needs to reset colors in use to prevent endless while loop CustomLobbyPlayer.ResetColorsInUse(); string matchName = RandomNameGenerator.generateRoomName(); ChangeTo(lobbyPanel); matchMaker.CreateMatch( matchName, (uint)maxPlayers, true, "", "", "", 0, 0, OnMatchCreate); }