protected override void parseJsonReceived (JSONNode __jsonNodeReceived)
		{
			_jsonNode = __jsonNodeReceived["entity"];
			
			JSONNode rankingListNode = _jsonNode["minigameRankingList"];
			if(string.IsNullOrEmpty(rankingListNode.ToString()) == false)
			{
				_minigameRankingList = convertJsonArrayToSVOList<MinigameRankingSVO>(rankingListNode.AsArray);
			}
			
			
			
			JSONNode userRankingNode = _jsonNode["userMinigameRanking"];
			if(string.IsNullOrEmpty(userRankingNode.ToString()) == false)
			{
				_userMinigameRanking = new MinigameRankingSVO();
				_userMinigameRanking.setup(userRankingNode);
			}
			
			
			
			JSONNode hasNextPageNode = _jsonNode["hasNextPage"];
			if(string.IsNullOrEmpty(hasNextPageNode.ToString()) == false)
			{
				_hasNextPage = hasNextPageNode.AsBool;
			}
			else
			{
				_hasNextPage = false;
			}
		}
示例#2
0
        protected override void parseJsonReceived(JSONNode __jsonNodeReceived)
        {
            _jsonNode = __jsonNodeReceived["entity"];

            JSONNode rankingListNode = _jsonNode["minigameRankingList"];

            if (string.IsNullOrEmpty(rankingListNode.ToString()) == false)
            {
                _minigameRankingList = convertJsonArrayToSVOList <MinigameRankingSVO>(rankingListNode.AsArray);
            }



            JSONNode userRankingNode = _jsonNode["userMinigameRanking"];

            if (string.IsNullOrEmpty(userRankingNode.ToString()) == false)
            {
                _userMinigameRanking = new MinigameRankingSVO();
                _userMinigameRanking.setup(userRankingNode);
            }



            JSONNode hasNextPageNode = _jsonNode["hasNextPage"];

            if (string.IsNullOrEmpty(hasNextPageNode.ToString()) == false)
            {
                _hasNextPage = hasNextPageNode.AsBool;
            }
            else
            {
                _hasNextPage = false;
            }
        }
示例#3
0
    void GUIPlayerRankDetails(MinigameRankingSVO playerRank)
    {
        guiRect2.Set(guiRect.x, guiRect.y, guiRect.width * 0.05f, guiRect.height);
        GUI.Label(guiRect2, "<color=#000000ff><b><i>" + playerRank.ranking + "</i></b></color>", textStyle);

        guiRect2.Set(guiRect.x + guiRect.width * 0.1f, guiRect.y, guiRect.width * 0.7f, guiRect.height);
        GUI.Label(guiRect2, "<color=#000000ff>" + playerRank.nickName + "</color>", styleTextLeft);

        guiRect2.Set(guiRect.x + guiRect.width * 0.88f - 10, guiRect.y, guiRect.width * 0.12f, guiRect.height);
        GUI.Label(guiRect2, "<color=#000000ff><b><i><size=18>" + playerRank.score + "</size></i></b></color>", textStyle);

        guiRect2.Set(guiRect.x + guiRect.width * 0.88f - 15 - star.width, guiRect.y + 1, star.width, star.height);
        GUI.DrawTexture(guiRect2, star);
    }