private IEnumerator _AddRowType1(DataLobby lobby) { yield return(new WaitForEndOfFrame()); types1.Add(LobbyRowType1.Create(lobby, tableType1, JoinGame)); yield return(new WaitForSeconds(0.1f)); tableType1.repositionNow = true; yield return(new WaitForSeconds(0.2f)); tableType1.GetComponent <UICenterOnChild>().Recenter(); }
IEnumerator initShowRowType1(List <DataLobby> lobbies) { ClearAllRow(); yield return(new WaitForEndOfFrame()); if (lobbies.Count > 0) { for (int i = 0; i < lobbies.Count; i++) { if (types1.Find(lb => lb.data.roomId == lobbies[i].roomId) != null) { continue; } LobbyRowType1 lobby = LobbyRowType1.Create(lobbies[i], tableType1, JoinGame); types1.Add(lobby); } tableType1.repositionNow = true; yield return(new WaitForEndOfFrame()); tableType1.GetComponent <UICenterOnChild>().CenterOn(tableType1.transform.GetChild(0)); } }