/// <summary> /// Checks if the cards in the combo queue match a combo card /// /// TODO: Should this be checking if 3 cards? Or is that handled adequately already /// </summary> /// <returns></returns> public Card checkForCombo() { Card[] cards = GetComponentsInChildren <Card>(); string cardIDs = ""; foreach (Card curr in cards) { cardIDs += curr.cardID; } if (loader.exists(cardIDs)) { Debug.Log("Combo"); return(loader.InstantiateCard(cardIDs)); } else { return(currentAction); } }