Exemple #1
0
 public void isTrue(int postion)
 {
     if (ChoiceText [postion].text == currentWord.wordTrue)
     {
         soundManager.PlaySoundCorrect();
         Debug.Log("TRUE!!");
         WordText.text = "CORRECT!!";
         player.attack();
     }
     else
     {
         soundManager.PlaySoundFalse();
         Debug.Log("FALSE!!");
         WordText.text = "WRONG!!";
         enemy.attack();
     }
     StartCoroutine(TransitionToNextWord());
 }
Exemple #2
0
 public void isTrue(int postion)
 {
     if (ChoiceText [postion].text == currentPicture.wordTh)
     {
         soundManager.PlaySoundCorrect();
         Debug.Log("TRUE!!");
         image.gameObject.SetActive(false);
         Alert.text = "CORRECT!!";
         player.attack();
     }
     else
     {
         soundManager.PlaySoundFalse();
         Debug.Log("FALSE!!");
         image.gameObject.SetActive(false);
         Alert.text = "WRONG!!";
         enemy.attack();
     }
     StartCoroutine(TransitionToNextWord());
 }