private void onMatchList(bool success, string extendedInfo, List <MatchInfoSnapshot> matches_list) { if (!success) { print("no matches found"); } foreach (MatchInfoSnapshot match in matches_list) { GameObject hosted_game = Instantiate(matchmaking_lobby_player); hosted_game.transform.SetParent(matchmaking_lobby.transform); CustomHost host_match = hosted_game.GetComponent <CustomHost>(); host_match.SetupMatch(match, gameObject.GetComponent <CustomNetworkManager>().port_alt, gameObject.GetComponent <CustomNetworkManager>().port_no); } }