void ShuffleCards() { // Remove all cards from present deck. deck.Clear(); ShuffleInts shuffle = new ShuffleInts(); int[] shuffleOrder = shuffle.Shuffle(54); for(var i = 0; i < shuffleOrder.Length; i++) { deck.Add(playingCards[shuffleOrder[i]]); } StartCoroutine( DealCards() ); }
public AiPlayer(GameController controller, List <PlayingCard> deck, List <PlayingCard> playedCards, Vector2 handPosition, Vector2 handDirection, Quaternion handRotation) : base(controller, deck, playedCards, handPosition, handDirection, handRotation) { shuffle = new ShuffleInts(); }