void pullCardData(Collider2D coll) { if(card != null){ card.highLighted = false; } lastCardHit = coll.gameObject; card = lastCardHit.GetComponent<indiCard>(); newCard = true; }
void pullCardData(Collider2D coll) { if (card != null) { card.highLighted = false; } lastCardHit = coll.gameObject; card = lastCardHit.GetComponent <indiCard>(); newCard = true; }
void OnTriggerExit2D(Collider2D coll) { if(tapped){ if(card != null){ card.highLighted = false; card = null; } lastCardHit = null; } }
void OnTriggerExit2D(Collider2D coll) { if (tapped) { if (card != null) { card.highLighted = false; card = null; } lastCardHit = null; } }
public void reset() { card.highLighted = false; card = null; lastCardHit = null; }