private void RemovePlayingCards() { List <GameObject> cards = CardsPlayed.GetAsGameObject(); foreach (var c in cards) { StartCoroutine(LerpCardY(c, 20.0f, 3.0f, true, false)); } }
private void DestroyCards() { List <GameObject> cards = CardsPlayed.GetAsGameObject(); //removal all the cards foreach (var c in cards) { Destroy(c); } CardsPlayed.RemoveAll(); _removingCards = false; //reset card pos cardRestPos = initalCardPos; }