public void ClearPengGangCards() { foreach (var card in _PengGangCards) { card.Destroy(); } _PengGangCards.Clear(); _GangPaiCard?.Destroy(); _GangPaiCard = null; _Pointer.SetActive(false); _GangPointer?.SetActive(false); }
//出牌动画和音效 public IEnumerator ChuCardAnimSound(int card, Vector3 animCardStatPoint, float scaleSize = 1f) { CardFiveStarSoundMgr.Ins.PlaySound(_user.Sex, FiveStarOperateType.ChuCard, card);//出牌 喊话 音效 CardFiveStarCard newChuCard = AddChuCard(card); CardFiveStarCard animCard = CardFiveStarCardPool.Ins.Create(ChuCardType, card, _NewHandPointGo.transform); animCard.gameObject.transform.position = animCardStatPoint; newChuCard.SetImageActive(false); yield return(new WaitForFixedUpdate()); animCard.gameObject.transform.DOMove(newChuCard.gameObject.transform.position, 0.4f); animCard.gameObject.transform.DOScale(VectorHelper.GetSameVector3(scaleSize), 0.4f); yield return(new WaitForSeconds(0.4f)); newChuCard.SetImageActive(true); ChuCardJianTouMgr.Ins.Show(newChuCard.gameObject, ChuCardJianTouYAxleOffset); animCard.Destroy(); CardFiveStarSoundMgr.Ins.PlaySound(SexType.None, FiveStarOperateType.ChuCardFall);//出牌落地 音效 }