public void clickCard(SumiWheelCardClick card) { MicrogameController.instance.playSFX(clickClip); //Find any match if we have one var thought = getMatchingThought(card); if (thought == null) { handleVictory(false); } else { thought.select(); thoughtPool.Remove(thought); if (!thoughtPool.Any()) { handleVictory(true); } } }
public void setCard(SumiWheelCardClick card) { this.card = card; copySpriteAttributes(); }
SumiWheelThoughtCard getMatchingThought(SumiWheelCardClick card) { return(thoughtPool.FirstOrDefault(a => a.getCard() == card)); }