Beispiel #1
0
 private void Update()
 {
     if (this.gameObject.activeSelf == true)
     {
         test = FindObjectOfType <TestCode>();
         if (Input.GetKeyDown(KeyCode.Return))
         {
             theDM.prom = false;
             theDM.StopAllCoroutines();
             theDM.ExitDialogue();
             disappearInput();
             if (test.answer == text.text)
             {
                 theDM.ShowDialogue(test.answerD);
                 if (test.additem == true)
                 {
                     test.ResultItem();
                 }
                 test.Yes  = true;
                 text.text = "";
                 test.SetBool();
             }
             else
             {
                 theDM.ShowDialogue(test.noanswerD);
             }
         }
     }
 }