Exemple #1
0
 /// <summary>
 /// 清除玩家手牌
 /// </summary>
 public void CleanHandCards()
 {
     if (mHandCard == null)
     {
         mHandCard = new List <string>();
     }
     mHandCard.Clear();
     NGUITools.DestroyChildren(mHandCardGid.transform);
     showCard   = false;
     mCardsType = null;
 }
Exemple #2
0
    /// <summary>
    /// 自己翻牌
    /// </summary>
    public void TurnSelfCards()
    {
        TenPlayerUI player = null;

        if (TryGetPlayer(TenModel.Inst.mMySeatId, out player))
        {
            player.TurnCards(player.GetHandCard());
            TenPlayerHandCardsType type = player.GetCardsType();
            if (type != null)
            {
                player.SetCardType(true, type.point, type.ratio, true);
                player.SeparateCards(type.order);
            }
        }
    }
Exemple #3
0
 /// <summary>
 /// 清理玩家
 /// </summary>
 public void CleanPlayer()
 {
     CleanHandCards();
     if (mBasePlayerInfo != null)
     {
         NGUITools.DestroyImmediate(mBasePlayerInfo.gameObject);
         mBasePlayerInfo = null;
     }
     mCathecticCoinLabel.text = "";
     mCathecticCoinLabel.gameObject.SetActive(false);
     mTxtChatSp.gameObject.SetActive(false);
     mYYVoiceAnim.gameObject.SetActive(false);
     SeatId     = 0;
     showCard   = false;
     mCardsType = null;
     SetCardType(false, 0, 0);
     SetQiangZhuangResult(false, 0);
 }
Exemple #4
0
 /// <summary>
 /// 设置牌醒
 /// </summary>
 /// <param name="type"></param>
 public void SetCardsType(TenPlayerHandCardsType type)
 {
     mCardsType = type;
 }