Exemplo n.º 1
0
    public void AddHistory(int cardId)
    {
        histories.Add(cardId);

        string str = "";

        if (histories.Count > 10)
        {
            histories.RemoveAt(0);
            for (int i = 0; i < histories.Count; i++)
            {
                if (i != 0)
                {
                    str += " ";
                }
                str += VKCommon.ConvertCardIdToString(histories[i]);
            }
        }
        else
        {
            str = txtHistory.text;
            if (histories.Count > 1)
            {
                str += " ";
            }
            str += VKCommon.ConvertCardIdToString(cardId);
        }

        txtHistory.text = str;
    }
Exemplo n.º 2
0
    public void LoadHistory(SRSMiniPokerHistoryItem data)
    {
        gameObject.SetActive(true);

        txtId.text     = data.SpinID;
        txtTime.text   = data.Time;
        txtRoom.text   = VKCommon.ConvertStringMoney(data.BetValue);
        txtResult.text = VKCommon.ConvertCardIdToString(data.Card);
        txtWin.text    = VKCommon.ConvertStringMoney(data.PrizeValue);
    }
    public void LoadHistory(SRSHighHistoryLowItem data)
    {
        gameObject.SetActive(true);

        txtId.text     = data.TurnID.ToString();
        txtTime.text   = data.Time;
        txtRoom.text   = VKCommon.ConvertStringMoney(data.BetValue);
        txtResult.text = VKCommon.ConvertCardIdToString(data.CardID);
        txtWin.text    = VKCommon.ConvertStringMoney(data.PrizeValue);
    }