コード例 #1
0
    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);
            }
        }
    }
コード例 #2
0
 public void setCard(SumiWheelCardClick card)
 {
     this.card = card;
     copySpriteAttributes();
 }
コード例 #3
0
 SumiWheelThoughtCard getMatchingThought(SumiWheelCardClick card)
 {
     return(thoughtPool.FirstOrDefault(a => a.getCard() == card));
 }