Пример #1
0
    //中奖记录页面显示
    public void Awardshow(Game2JackpotListDto jackpotDtoList)
    {
        if (jackpotDtoList.jackpotList != null)
        {
            DebugUtils.DebugerExtension.Log(jackpotDtoList.jackpotList[0].winGold);
            if (jackpotDtoList.jackpotList.Count >= 0 && jackpotDtoList.jackpotList.Count < 11)
            {
                //生成记录
                for (int i = 0; i < jackpotDtoList.jackpotList.Count; i++)
                {
                    if (AwardRecordshow.childCount > 0)
                    {
                        for (int j = 0; j < AwardRecordshow.childCount; j++)
                        {
                            GameObject obj = AwardRecordshow.GetChild(j).gameObject;
                            if (obj.activeSelf == false)
                            {
                                obj.transform.GetChild(0).GetComponent <Text>().text = jackpotDtoList.jackpotList[i].userName;
                                obj.transform.GetChild(1).GetComponent <Text>().text = cardTypeList[jackpotDtoList.jackpotList[i].awardType - 1];

                                obj.transform.GetChild(2).GetComponent <Text>().text = NumberConvert.ConvertW(jackpotDtoList.jackpotList[i].winGold);
                                obj.transform.gameObject.SetActive(true);
                                break;
                            }
                        }
                    }
                }
            }
        }
        //打开中奖记录页面
        awardRecordPanel.gameObject.SetActive(true);
        TouchPanel.gameObject.SetActive(true);
    }
Пример #2
0
 //中奖纪录
 public override void jackpot2CallBack(Game2JackpotListDto callBackParam)
 {
     if (callBackParam != null)
     {
         GameMove gameMove = MessageManager.GetInstance.GetUIDict <GameMove>();
         gameMove.Awardshow(callBackParam);
     }
 }
Пример #3
0
 /// <summary>
 ///  ----> <<jackpot();回调>>
 /// </summary>
 public virtual void jackpot2CallBack(Game2JackpotListDto callBackParam)
 {
 }