private void CallbackWwwSuccess(string response)
    {
        MemberList = RankingDataModel.DesirializeFromJson(response);

        Debug.Log("Success!");
        RankingRoadFlag = false;

        RankingManager.RankingDisplay();
    }
Exemple #2
0
    /// <summary>
    /// Callbacks the www success.
    /// </summary>
    /// <param name="response">Response.</param>
    private void CallbackWwwSuccess(string response)
    {
        // json データ取得が成功したのでデシリアライズして整形し画面に表示する
        List <RankingData> messageList = RankingDataModel.DesirializeFromJson(response);

        string sStrOutput = "";

        foreach (RankingData message in messageList)
        {
            sStrOutput += string.Format("Id:{0}\n", message.Id);
            //sStrOutput	+= string.Format("Score:{0}\n",message.Score);
            //sStrOutput	+= string.Format("Name:{0}\n",message.Name);
        }
        DisplayField.text = sStrOutput;
    }
    private void CallbackWwwSuccess(string response)
    {
        List <RankingData> rankingList = RankingDataModel.DesirializeFromJson(response);
        int number = 1;

        foreach (RankingData ranking in rankingList)
        {
            GameObject panel = Instantiate(Panel, Panel.transform.position, Panel.transform.rotation);
            panel.transform.SetParent(parentTransform);
            RankingPanel rankingPanel = panel.GetComponent <RankingPanel>();
            rankingPanel.SetNumberText(number.ToString());
            number++;
            rankingPanel.SetScoreText(ranking.score.ToString());
            rankingPanel.SetDateText(ranking.Date.ToString());
        }
    }
Exemple #4
0
    /// <summary>
    /// Callbacks the www success.
    /// </summary>
    /// <param name="response">Response.</param>
    private void CallbackWwwSuccess(string response)
    {
        // json データ取得が成功したのでデシリアライズして整形し画面に表示する
        List <RankingData> rankingList = RankingDataModel.DesirializeFromJson(response);

        string sStrOutput = "";

        foreach (RankingData rankingData in rankingList)
        {
            sStrOutput += string.Format("ID:{0}\n", rankingData.Id);
            sStrOutput += string.Format("STAGE TIME:{0}\n", rankingData.st5time);

            CreateRankingContent(rankingData);
        }
        //DisplayField.text = sStrOutput;
        Debug.Log(sStrOutput);
    }
    private void CallbackWwwSuccess(string response)
    {
        // json データ取得が成功したのでデシリアライズして整形し画面に表示する
        List <RankingData> rankingdataList = RankingDataModel.DesirializeFromJson(response);
        string             sStrOutput      = "";

        foreach (RankingData rankingData in rankingdataList)
        {
            sStrOutput += string.Format("id:{0}\n", rankingData.Id);
            sStrOutput += string.Format("name:{0}\n", rankingData.Name);
            sStrOutput += string.Format("score:{0}\n", rankingData.Score);
            sStrOutput += string.Format("time:{0}\n", rankingData.Time);

            CreateRankingContent(rankingData);
        }
        Debug.Log("sStrOutput");
        //DisplayField.text = sStrOutput;*/
    }