//弃牌阶段初始化 public void AbandonmentRoundStart() { roundPhase = RoundPhase.Abandonment; if (isMyturn) { Instantiate(discardTipPrefab, MainCanvas); cardCurved.AbandonmentCard(); } else { enemyHCurved.AbandonmentCard(); } }
//弃牌 public void DestroyCard() { if (roundManager.roundPhase == RoundPhase.Abandonment && !roundManager.isMyturn) { //处于我方弃牌阶段,保留5张,判断是否还需弃牌 enemyHCurved.DestroyTheCard(handCardNo); enemyHCurved.AbandonmentCard(); } else if (showingCard.delayAttack) { //流星雨弃牌中,最大弃3张,每张伤害+1 if (showingCard.addDamage < 3) { enemyHCurved.DestroyTheCard(handCardNo); showingCard.addDamage++; } } }