示例#1
0
        /// <summary>
        /// 显示牌背
        /// </summary>
        public void SetPaiBei()
        {
            this.Panel.SetActive(true);

            _poker.sprite = SpriteHelper.GetPokerSprite(0, true);

            this._dizhu.SetActive(false);
        }
示例#2
0
        /// <summary>
        /// 设置扑克牌
        /// </summary>
        /// <param name="poker"></param>
        public void SetPokerImageSprite(byte pokerId, bool isDiZhu = false)
        {
            this.Panel.SetActive(true);

            this.pokerId = pokerId;

            this.isDiZhu = isDiZhu;

            this.pokerInt = PokerCardsHelper.GetPokerOfInt(pokerId);

            this.pokerValue = DDZGameHelper.GetPokerNum(pokerId);

            _poker.sprite = SpriteHelper.GetPokerSprite(PokerCardsHelper.GetPokerOfInt(pokerId));

            this._dizhu.SetActive(isDiZhu);
        }