//播放牌面 public override void showCards(Game2CardListDto listDto) { CardManager cardManager = MessageManager.GetInstance.GetUIDict <CardManager>(); GameMove gameMove = MessageManager.GetInstance.GetUIDict <GameMove>(); liuliu.tOCardsDtos = listDto; if (liuliu.tOCardsDtos != null) { if (cardManager != null & gameMove != null) { cardManager.showCard(liuliu.tOCardsDtos); gameMove.Result(); } } }
IEnumerator show(Game2CardListDto tOCardsDtos) { for (int i = 0; i < tOCardsDtos.cardDtoList.Count; i++) { yield return(new WaitForSeconds(.7f)); //将每堆牌的Dto初始化为空 Game2CardDto todto = null; todto = tOCardsDtos.cardDtoList[i]; Show(todto, i); Vector3 v3 = FallCardPosList[i].localPosition; v3.y -= 15; } Result(); }
/// <summary> /// 播放牌面 /// </summary> public void showCard(Game2CardListDto tOCardsDtos) { showCoroutine = ILMgr.Instance.StartCoroutine(show(tOCardsDtos)); }
/// <summary> /// 通知手牌 /// </summary> public virtual void showCards(Game2CardListDto listDto) { }