예제 #1
0
 /// <summary>
 /// 获取背牌
 /// </summary>
 /// <returns></returns>
 public static Sprite GetBackPuke()
 {
     if (PukeRc == null)
     {
         PukeRc = AltasHelp.GetPukeAltas().GetComponent <ReferenceCollector>();
         return(PukeRc.Get <Sprite>($"{backPuke}"));
     }
     else
     {
         return(PukeRc.Get <Sprite>($"{backPuke}"));
     }
 }
예제 #2
0
 /// <summary>
 /// 得到图片的图集
 /// </summary>
 /// <param name="bCard"></param>
 /// <returns></returns>
 public static Sprite GetTexSprite(byte bCard)
 {
     if (PukeRc == null)
     {
         PukeRc = AltasHelp.GetPukeAltas().GetComponent <ReferenceCollector>();
         return(PukeRc.Get <Sprite>($"{GetCardTex(bCard)}"));
     }
     else
     {
         return(PukeRc.Get <Sprite>($"{GetCardTex(bCard)}"));
     }
 }
예제 #3
0
 /// <summary>
 /// 显示抢庄
 /// </summary>
 /// <param name="BankerNumber"></param>
 public void ShowRobBanker(byte BankerNumber)
 {
     //显示抢庄
     img_Rob.gameObject.SetActive(true);
     if (BankerNumber == 0)
     {
         img_Rob.sprite = AltasHelp.GetFontAltas().Get <Sprite>($"W_buqiang");
     }
     else
     {
         img_Rob.sprite = AltasHelp.GetFontAltas().Get <Sprite>($"W_qiang_{BankerNumber}");
     }
 }
예제 #4
0
        /// <summary>
        /// 显示牛数
        /// </summary>
        /// <param name="CardType"></param>
        public void ShowNiuShu(byte CardType)
        {
            img_Niu.gameObject.SetActive(true);
            //牛型判断
            switch (CardType)
            {
            case GameLogic.NO_NIU:
                img_Niu.sprite = AltasHelp.GetFontAltas().Get <Sprite>("W_wuniu");
                break;

            case GameLogic.NIU_1:
                img_Niu.sprite = AltasHelp.GetFontAltas().Get <Sprite>("W_niuyi");
                break;

            case GameLogic.NIU_2:
                img_Niu.sprite = AltasHelp.GetFontAltas().Get <Sprite>("W_niuer");
                break;

            case GameLogic.NIU_3:
                img_Niu.sprite = AltasHelp.GetFontAltas().Get <Sprite>("W_niusan");
                break;

            case GameLogic.NIU_4:
                img_Niu.sprite = AltasHelp.GetFontAltas().Get <Sprite>("W_niusi");
                break;

            case GameLogic.NIU_5:
                img_Niu.sprite = AltasHelp.GetFontAltas().Get <Sprite>("W_niuwu");
                break;

            case GameLogic.NIU_6:
                img_Niu.sprite = AltasHelp.GetFontAltas().Get <Sprite>("W_niuliu");
                break;

            case GameLogic.NIU_7:
                img_Niu.sprite = AltasHelp.GetFontAltas().Get <Sprite>("W_niuqi");
                break;

            case GameLogic.NIU_8:
                img_Niu.sprite = AltasHelp.GetFontAltas().Get <Sprite>("W_niuba");
                break;

            case GameLogic.NIU_9:
                img_Niu.sprite = AltasHelp.GetFontAltas().Get <Sprite>("W_niujiu");
                break;

            case GameLogic.NIU_NIU:
                img_Niu.sprite = AltasHelp.GetFontAltas().Get <Sprite>("W_niuniu");
                break;
            }
        }