public void MoveToNextRound() { LastPresidentId = PresidentId; PresidentId = -1; LastChancellorId = ChancellorId; ChancellorId = -1; NominatedChancellorId = -1; RoundState = RoundState.PickChancellor; _votes.Clear(); CardsInHand.Clear(); }
public void EmptyHand() { bool handWasTooFull = CardsInHand.Count > MaxHandSize; for (int ii = CardsInHand.Count - 1; ii >= 0; ii--) { Destroy(CardsInHand[ii].gameObject); } CardsInHand.Clear(); if (handWasTooFull) { HandIsNoLongerTooFullCallback(); } AdjustCardsInHandPosition(); }
//Sorting method // // public void SortCardInHand() { List <string> tempCardOnHand = new List <string>(); for (actualCardValue = 0; actualCardValue < deck.Length; actualCardValue++) { foreach (string card in CardsInHand) { if (card == deck[actualCardValue]) { tempCardOnHand.Add(card); } } } CardsInHand.Clear(); //Clear list for adding temporary cards foreach (string karta in tempCardOnHand) { CardsInHand.Add(karta); } }
public void ClearHands() { CardsInHand.Clear(); VisibleCard = null; }