trying to trigger an event so when the enemy turn starts, each card in the enemy’s had is added to a list if it’s individual cost is equal to or less then the current mana level… trying it from the current objects script, for each or etc
if (getComponent<CardStats>().cardCost <= battleStats.ManaThisTurn)
{list.add(cardID);
or
foreach (transform child in transform)
if (GetComponent<CardsStats>();cards <= battleStats.ManathisTUrn()
{
{list.add(cardID);
}