Beispiel #1
0
 /// <summary>
 /// 牛牛播放牌型音效
 /// </summary>
 /// <param name="set"></param>
 /// <param name="PeiPaiType"></param>
 public void PlayNiuNiuCardType(int sex, NNType PeiPaiType)
 {
     if (sex == 1)//男
     {
         if ((int)PeiPaiType < 11)
         {
             SoundManager.Instance.PlaySound(UIPaths.NN_MAN + ((int)PeiPaiType).ToString() + "k");
         }
         else
         {
             SoundManager.Instance.PlaySound(UIPaths.NN_Special);
         }
     }
     else
     {
         if ((int)PeiPaiType < 11)
         {
             SoundManager.Instance.PlaySound(UIPaths.NN_WOMAN + ((int)PeiPaiType).ToString() + "k");
         }
         else
         {
             SoundManager.Instance.PlaySound(UIPaths.NN_Special);
         }
     }
 }
Beispiel #2
0
 /// <summary>
 /// 播放动画
 /// </summary>
 /// <param name="PeiPaiType"></param>
 /// <param name="FanBeiCount"></param>
 public void SetCardValue(NNType PeiPaiType, UInt32 FanBeiCount)
 {
     SelfSprite.gameObject.SetActive(true);
     SelfSprite.spriteName = "UI_game_icon_CardType_" + (int)PeiPaiType;
     SelfSprite.MakePixelPerfect();
     if (FanBeiCount > 1)
     {
         typeSprite.gameObject.SetActive(true);
         NumSprite.gameObject.SetActive(true);
         NumSprite.spriteName = FanBeiCount.ToString();
         NumSprite.MakePixelPerfect();
     }
 }