Example #1
0
    /// <summary>
    /// 历史记录
    /// </summary>
    public void HandleHistory(List <AHResult> history)
    {
        Transform resultParentTrans = transform.Find("Bg/Result");

        for (int i = 0; i < history.Count; i++)
        {
            Transform result = resultParentTrans.GetChild(i);

            //单双
            result.GetChild(0).GetComponent <Text>().text = GameTools.GetDoubleOrSingle(history[i].OddEnven);
            //牌型
            result.GetChild(1).GetComponent <Text>().text = GameTools.GetCardType(history[i].Result);
        }
    }