public void OnDrop(PointerEventData eventData) { DragDropWord word = DragDropWord.wordBeingDragged.GetComponent <DragDropWord>(); if (CheckMatch(word) == true) { word.Matched(transform); } }
bool CheckMatch(DragDropWord word) { if (m_WordID == word.m_WordID) { CorrectMatch(); return(true); } IncorrectMatch(); return(false); }