Ejemplo n.º 1
0
 public void answer()
 {
     if (Sequence_Question < Question.Length - 1)
     {
         if (input_Answer.text == Answer [Sequence_Question])
         {
             Feed_Right.SetActive(false);
             Feed_Right.SetActive(true);
             Feed_False.SetActive(false);
             Score += 20;
         }
         else
         {
             Feed_Right.SetActive(false);
             Feed_False.SetActive(false);
             Feed_False.SetActive(true);
         }
         input_Answer.text = "";
         Displayed_Question();
     }
     else
     {
         if (input_Answer.text == Answer [Sequence_Question])
         {
             Score += 20;
         }
         Done.SetActive(true);
         Question_Spot.SetActive(false);
     }
 }
Ejemplo n.º 2
0
 public void answer()
 {
     if (urutan_soal < Question.Length - 1)
     {
         if (input_Answer.text == Answer [urutan_soal])
         {
             Feed_Right.SetActive(false);
             Feed_Right.SetActive(true);
             Feed_False.SetActive(false);
             Score += 20;
         }
         else
         {
             Feed_Right.SetActive(false);
             Feed_False.SetActive(false);
             Feed_False.SetActive(true);
         }
         input_Answer.text = "";
         tampil_soal();
     }
     else
     {
         if (input_Answer.text == Answer [urutan_soal])
         {
             Score += 20;
         }
         Done.SetActive(true);
         Question_Spot.SetActive(false);
     }
 }