public List <PlayerCard> PickSelectCards() { List <PlayerCard> theCardlist = new List <PlayerCard> (); List <PlayerCard> overCardlist = new List <PlayerCard> (); for (int i = 0; i < allCardObjects.Count; ++i) { PokerControl p = allCardObjects[i].GetComponent <PokerControl> (); if (p.isSelected) { theCardlist.Add(p.GetCard()); } else { overCardlist.Add(p.GetCard()); } } ShowCardList(overCardlist); return(theCardlist); }
public List <PlayerCard> PickSelectCards() { List <PlayerCard> list = new List <PlayerCard> (); for (int i = 0; i < allCardObjects.Count; ++i) { PokerControl p = allCardObjects[i].GetComponent <PokerControl> (); if (p.isSelected) { list.Add(p.GetCard()); } } return(list); }