//抽多张牌 private IEnumerator DrawCard(int drawNum, bool bRoundStartDraw) { for (int i = 0; i < drawNum; i++) { if (!BattleTool.IsDeckHasCard()) //如果没卡了 { if (!BattleTool.IsUsedHasCard()) { yield break; } float shuffleTime = BattleTool.ShuffleDeckFromUsed(); yield return(new WaitForSeconds(shuffleTime)); } _battleModel.DrawOneCard(bRoundStartDraw); yield return(new WaitForSeconds(0.2f)); } }