Beispiel #1
0
    private string GetLatestRoundID()
    {
        DBround round = DBAccessor.Instance.GetLatestRound();

        if (round == null)
        {
            Debug.LogError("获取最新的回合信息为空");
            return("");
        }

        return(round.ID);
    }
Beispiel #2
0
    public DBround GetLatestRound()
    {
        DBround latestR = new DBround();
        DataSet dataSet = latestR.GetLatest();

        if (dataSet.Tables.Count == 0 || dataSet.Tables[0].Rows.Count == 0)
        {
            Debug.LogWarning("没有最新的信息");
            return(null);
        }

        List <DBround> list = latestR.Fill(dataSet);

        return(list[0]);
    }
Beispiel #3
0
    public DBround GetRoundInfo(string id)
    {
        DBround round = new DBround(id);

        return(round);
    }