Example #1
0
 public void CardRevealed(MemoryCard card)
 {
     if (_firstRevealed == null)
     {
         playAudio.PlayGuessClip();
         _firstRevealed = card; // if first revealed slot empty, fill it with card.
     }
     else
     {
         playAudio.PlayGuessClip();
         _secondRevealed = card; // else fill in the second revealed slot.
         StartCoroutine(CheckMatch());
     }
 }