private void OnInternetMatchList(ListMatchResponse matchListResponse) { ClearMatchList(); if (matchListResponse.success) { state.text = ""; if (matchListResponse.matches.Count != 0) { foreach (MatchDesc match in matchListResponse.matches) { GameObject obj = Instantiate(Prefab); RoomScript room = obj.GetComponent <RoomScript>(); if (room != null) { room.match = match; room.RoomUI = GameObject.Find("RoomsUI"); room.Setup(); } obj.transform.parent = Content.transform; matchList.Add(obj); } } else { state.text = "Sorry, No Rooms :("; } } else { state.text = "Not Connect :("; } }