public void CreateGame() { gameCreationButton.interactable = false; gameClientManager.CreateGame(new CreateGameMsg { gameName = gameNameText.text, minPlayers = (int)minPlayerCountSlider.value, maxPlayers = (int)maxPlayerCountSlider.value }); gameNameText.text = ""; }