//显示赢的牌 public void ShowWinCard(int cardSize) { if (_WinCard == null) { CreateWinCard(); } _WinCard.SetCardUI(cardSize); _WinCard.SetActive(true); }
public void ShowMaiMaPai(int maCard) { if (maCard <= 0) { mMaiMaGo.SetActive(false); return; } mMaiMaGo.SetActive(true); if (_MaiMaCard == null) { _MaiMaCard = CardFiveStarCardPool.Ins.Create(CardFiveStarCardType.Down_ZhiLi_ZhengMain, mMaPaiPointGo.transform, 0.5f); _MaiMaCard.LocalPositionZero(); } _MaiMaCard.SetCardUI(maCard); }
//设置UI public void SetUI(int operatuionType, int cardSize) { gameObject.SetActive(true); _CardSize = cardSize; _OperatuionType = operatuionType; _CardFiveStarCard.SetCardUI(_CardSize); if (operatuionType == FiveStarOperateType.Peng) { _PengGangImage.sprite = ResourcesComponent.Ins.GetResoure(UIType.CardFiveStarRoomPanel, "peng") as Sprite; } else if (operatuionType == FiveStarOperateType.MingGang) { _PengGangImage.sprite = ResourcesComponent.Ins.GetResoure(UIType.CardFiveStarRoomPanel, "gang") as Sprite; } }
public void SetUI(int cardSize) { Show(); if (_card == null) { _card = CardFiveStarCardPool.Ins.Create(CardFiveStarCardType.Down_ZhiLi_ZhengMain, cardSize, _CardPointGo, 0.6f); _card.LocalPositionZero(); } else { _card.SetCardUI(cardSize); } int selectChuCard = UIComponent.GetUiView <FiveStarMingPaiHintPanelComponent>()._SelectChuCard; int multipleNum = CardFiveStarHandComponent.Ins.GetCardInMultiple(cardSize, selectChuCard); int residueCardNum = CardFiveStarRoom.Ins._AllCardResidueNum[cardSize]; _DescText.text = $"{multipleNum}<color=#494949FF>倍</color>\n{residueCardNum}<color=#494949FF>张</color>"; }
public async Task ShowMaiMaCard(int card, int score) { Show(); mSocreText.text = string.Empty; for (int i = 0; i < 2; i++) { await ShowOneAnim(); } if (_MaiMaCard == null) { _MaiMaCard = CardFiveStarCardPool.Ins.Create(CardFiveStarCardType.Down_ZhiLi_ZhengMain, card, mMaiMaCardPointGo.transform, 0.8f); _MaiMaCard.LocalPositionZero(); } else { _MaiMaCard.SetCardUI(card); } mSocreText.text = "J" + score; await ETModel.Game.Scene.GetComponent <TimerComponent>().WaitAsync(1000); Hide(); _MaiMaCard.SetActive(false); }