예제 #1
0
    private void _UpdateLobbyType2(DataLobby lobby)
    {
        LobbyRowType2 lobbyRow = types2.Find(lb => lb.data.roomId == lobby.roomId);

        if (lobbyRow != null)
        {
            lobbyRow.setData(lobby);
        }
    }
예제 #2
0
    public static LobbyRowType2 Create(DataLobby data, UITable parent)
    {
        GameObject go = GameObject.Instantiate(Resources.Load("Prefabs/Lobby/LobbyRowType2")) as GameObject;

        go.transform.parent        = parent.transform;
        go.transform.localPosition = Vector3.zero;
        go.transform.localScale    = Vector3.one;
        go.name = data.roomId + " - " + data.roomName;
        LobbyRowType2 item = go.GetComponent <LobbyRowType2>();

        item.StartCoroutine(item.setData(data));
        return(item);
    }