Exemplo n.º 1
0
        public static LegBet GetLegBetCard(Camel camel)
        {
            var cList = mLegBet.Where(x => x.camel.name.Equals(camel.name)).ToList();

            if (cList.Count == 0)
            {
                return(null);
            }

            LegBet bestCard = cList[0];

            for (int i = 1; i < cList.Count; i++)
            {
                if (cList[i].rewards[0] > bestCard.rewards[0])
                {
                    bestCard = cList[i];
                }
            }
            return(bestCard);
        }
Exemplo n.º 2
0
 public static void RemoveLegBetCard(LegBet card)
 {
     mLegBet.Remove(card);
 }