void OnFillText(int idButton, string letter) { for (int i = 0; i < ans.transform.childCount; i++) // vì ở đây không có dấu sao hàng cuối { BoxWorld b = ans.transform.GetChild(i).GetComponent <BoxWorld>(); b.HideLastItem(); if (b.keyMaping == -1 && b.idButton >= 0) { b.ShowLastItem(); b.OnMapingKey(idButton, letter); return; } } }
public void UnSetLetter(string letter, int idButton) { for (int i = 0; i < ans.transform.childCount; i++) { BoxWorld b = ans.transform.GetChild(i).GetComponent <BoxWorld>(); b.HideLastItem(); if (idButton == b.keyMaping) { b.ShowLastItem(); // b.OnUnMapingKey(idButton, letter); b.Unmapkey(); } } }
public void OnUnFillText(int currentQuiz, int keyAnsID, string text) { if (listQuizzItem.Count > 0) { QuizzItem q = listQuizzItem[currentQuiz]; for (int i = 0; i < q.transform.childCount - 1; i++) { BoxWorld b = q.transform.GetChild(i).GetComponent <BoxWorld>(); b.HideLastItem(); if (keyAnsID == b.keyMaping) { b.Unmapkey(); b.ShowLastItem(); } } } else { Debug.Log("null data"); } }
public void OnFillText(int currentQuiz, int keyAnsID, string text) { if (listQuizzItem.Count > 0) { QuizzItem q = listQuizzItem[currentQuiz]; for (int i = 0; i < q.transform.childCount - 1; i++) { BoxWorld b = q.transform.GetChild(i).GetComponent <BoxWorld>(); b.HideLastItem(); if (b.keyMaping == -1 && b.idButton >= 0) { b.OnMapingKey(keyAnsID, text); b.ShowLastItem(); return; } } QuizzDetail.instance.listGenerate[currentQuiz].currentSelectItem = QuizzDetail.instance.listGenerate[currentQuiz].currentSelectItem + 1; } else { Debug.Log("null data"); } }