Exemple #1
0
    public void OnDrop(PointerEventData eventData)
    {
        DragDropWord word = DragDropWord.wordBeingDragged.GetComponent <DragDropWord>();

        if (CheckMatch(word) == true)
        {
            word.Matched(transform);
        }
    }
Exemple #2
0
 bool CheckMatch(DragDropWord word)
 {
     if (m_WordID == word.m_WordID)
     {
         CorrectMatch();
         return(true);
     }
     IncorrectMatch();
     return(false);
 }