public void ToggleGameSearch() { // Switch isSearchingForGame = !isSearchingForGame; discovery.JoinGameOnRecievedBroadcast(isSearchingForGame); stopSearchButton.gameObject.SetActive(isSearchingForGame); findLobbyButton.gameObject.SetActive(!isSearchingForGame); hostLobbyButton.gameObject.SetActive(!isSearchingForGame); backOptionsButton.gameObject.SetActive(!isSearchingForGame); }