From d28f8a5bec4392fe85635acb5c92f2954638e57e Mon Sep 17 00:00:00 2001 From: Tore Bergebakken Date: Sat, 13 Jul 2024 14:20:09 +0200 Subject: [PATCH] Make start button appear only after (local) server has started --- Assets/Scripts/UI/MainMenu/MainMenuController.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Assets/Scripts/UI/MainMenu/MainMenuController.cs b/Assets/Scripts/UI/MainMenu/MainMenuController.cs index 94ba7b1fc..98221d25a 100644 --- a/Assets/Scripts/UI/MainMenu/MainMenuController.cs +++ b/Assets/Scripts/UI/MainMenu/MainMenuController.cs @@ -296,10 +296,6 @@ private void AddPlayer(InputManager inputManager) if (firstInputJoined == null) firstInputJoined = inputManager; - bool canPlay = playerInputs.Count > 1; - var colors = startButton.colors; - colors.normalColor = canPlay ? colors.highlightedColor : colors.disabledColor; - startButton.colors = colors; inputManager.onMovePerformed += PlayUISelectAudio; inputManager.onSelect += PlayChooseAudio;