Beispiel #1
0
 public bool IsContainingSpy()
 {
     if (CardPile.Any(k => k.Key is SpyUnit))
     {
         return(true);
     }
     return(false);
 }
Beispiel #2
0
 public bool IsContainingMedic()
 {
     if (CardPile.Any(k => k.Key is MedicUnit))
     {
         return(true);
     }
     return(false);
 }
Beispiel #3
0
 public bool IsContainingStrongUnit()
 {
     if (CardPile.Any(k => (k.Key is UnitCard) && (k.Key as UnitCard).AttackValue >= 5 && !(k.Key is HeroUnit)))
     {
         return(true);
     }
     return(false);
 }
Beispiel #4
0
 public bool IsContainingUnit()
 {
     if (CardPile.Any(k => (k.Key is UnitCard) && !(k.Key is HeroUnit)))
     {
         return(true);
     }
     return(true);
 }
Beispiel #5
0
 private void UpdateCardPileImage()
 {
     if (!CardPile.Any())
     {
         DiscardPileImage.enabled = false;
         return;
     }
     DiscardPileImage.enabled = true;
     DiscardPileImage.sprite  = CardPile[CardPile.Count - 1].Value.GetComponent <Image>().sprite;
 }