Beispiel #1
0
    public void SetUI()
    {
        img_rank.gameObject.SetActive((item.Rank == 1 || item.Rank == 2 || item.Rank == 3));
        if (item.Rank == 1 || item.Rank == 2 || item.Rank == 3)
        {
            LoadAssetBundle.LoadSprite(img_rank, BundleName.UI, "rank_" + item.Rank);
        }

        txt_name.text  = item.Name;
        txt_money.text = MoneyHelper.FormatRelativelyWithoutUnit(item.Money);
        txt_rank.text  = item.Rank + "";

        LoadAssetBundle.LoadSprite(img_avata, BundleName.AVATAS, item.Avata_Id + "");
    }
Beispiel #2
0
 internal void OnNhanCacMucCuocXD(Message message)
 {
     try {
         for (int i = 0; i < 4; i++)
         {
             long mucc = message.reader().ReadLong();
             SelectBetMoney[i]     = mucc;
             txt_bet_money[i].text = MoneyHelper.FormatRelativelyWithoutUnit(mucc);
         }
         img_effect_bet[0].SetActive(true);
         for (int i = 1; i < img_effect_bet.Length; i++)
         {
             img_effect_bet[i].SetActive(false);
         }
         CurrentBetMoney = SelectBetMoney[0];
     } catch (Exception ex) {
         Debug.LogException(ex);
     }
 }