public void OnDrop(PointerEventData eventData) { DragDropWord word = DragDropWord.wordBeingDragged.GetComponent <DragDropWord>(); if (CheckMatch(word) == true) { word.Matched(transform); } }