/// <summary> /// 显示牌背 /// </summary> public void SetPaiBei() { this.Panel.SetActive(true); _poker.sprite = SpriteHelper.GetPokerSprite(0, true); this._dizhu.SetActive(false); }
/// <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); }