public bool IsContainingSpy() { if (CardPile.Any(k => k.Key is SpyUnit)) { return(true); } return(false); }
public bool IsContainingMedic() { if (CardPile.Any(k => k.Key is MedicUnit)) { return(true); } return(false); }
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); }
public bool IsContainingUnit() { if (CardPile.Any(k => (k.Key is UnitCard) && !(k.Key is HeroUnit))) { return(true); } return(true); }
private void UpdateCardPileImage() { if (!CardPile.Any()) { DiscardPileImage.enabled = false; return; } DiscardPileImage.enabled = true; DiscardPileImage.sprite = CardPile[CardPile.Count - 1].Value.GetComponent <Image>().sprite; }