// Update is called once per frame private bool UpdateCheck() { bool update = false; //check boost field if (BoostField.GetNumberOfCards() > 0) { boostMultiplier = 2; update = true; } weatherCards = WeatherField.GetCardsInCardPile(); foreach (GameObject card in weatherCards) { if (WeatherType == card.GetComponent <SpecialUnitCard>().GetUnitAbilityType()) { weatherCardActive = true; update = true; break; } } if (cardsInPile != UnitField.GetNumberOfCards() || update) { cardsInPile = UnitField.GetNumberOfCards(); return(true); } else { return(false); } }