public PengGangBtn(GameObject go) { gameObject = go; gameObject.transform.SetAsFirstSibling(); _PengGangBtn = go.FindChild("PengGangBtn").GetComponent <Button>(); _PengGangImage = go.FindChild("PengGangBtn").GetComponent <Image>(); _CardFiveStarCard = CardFiveStarCardPool.Ins.Create(CardFiveStarCardType.Down_ZhiLi_ZhengMain, go.FindChild("CardPointGo"), 0.7f); _CardFiveStarCard.LocalPositionZero(); _PengGangBtn.Add(Cilck); }
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); }
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); }
//单独显示杠的一张牌 private void ShowGangCard(int cardType) { _GangPaiCard = CardFiveStarCardPool.Ins.Create(cardType, _CardSize, _GangCardPoint); _GangPaiCard.LocalPositionZero(); }
public void CreateWinCard() { _WinCard = CardFiveStarCardPool.Ins.Create(LaingCardType, _WinCardPointGo.transform); _WinCard.LocalPositionZero();//本地左边归0 }
public void CreateMoCard() { _MoCard = CardFiveStarCardPool.Ins.Create(HandType, _NewHandPointGo.transform); _MoCard.LocalPositionZero();//本地左边归0 }