public void EndDrag() { if (Input.GetMouseButtonUp(0)) { int index = TMP_TextUtilities.FindIntersectingCharacter(text, Input.mousePosition, Camera.main, true); int indexPalavra = TMP_TextUtilities.FindIntersectingWord(text, Input.mousePosition, Camera.main); if (index >= 0) { bool flag = false; if (StringAux.CreckSprite(text.text, index) == 1) { flag = true; for (int i = 0; i < 4; i++) { indexBlocosQuestaoUsados[i] = info.indexOpcaoArrastada; } } else if (StringAux.CreckPalavra(text.text, indexPalavra)) { flag = true; for (int i = 0; i < 4; i++) { indexBlocosQuestaoUsados[i] = info.indexOpcaoArrastada; } } if (flag) { bool resp = false; if (((StartupDay_QuestaoLacuna)info.atividade.questoes[info.indexQuestao]).blocoLugar[indexBlocosQuestaoUsados[0]] == 1) { resp = true; } for (int i = 0; i < 4; i++) { indexBlocosQuestaoUsados[i] = -1; } gerente.Resposta(resp); } } } }