Example #1
0
 public void ResetAns()
 {
     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.Unmapkey();
         b._isSelect = true;
         b.HideLastItem();
     }
 }
Example #2
0
 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;
         }
     }
 }
Example #3
0
 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();
         }
     }
 }
Example #4
0
 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");
     }
 }
Example #5
0
 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");
     }
 }