Example #1
0
 void Update()
 {
     if (correct && tc.Expired())
     {
         nextLesson();
         tc.paused = true;
         tc.resetTimer();
     }
 }
 public void Update()
 {
     if (this.old == null)
     {
         this.old = "";
     }
     this.stringChanged(this.bc.content.ToUpper());
     this.sumComponent.text = this.old;
     if (correct && tc.Expired())
     {
         tc.paused = true;
         tc.resetTimer();
         nextLesson();
     }
 }
Example #3
0
 public void Update()
 {
     if (this.old == null)
     {
         this.old = "";
     }
     this.stringChanged(this.bc.content.ToUpper());
     this.sumComponent.text = this.old; // Update the current value of the held string
     if (correct && tc.Expired())       // Go to next lesson if the string is the answer
     {
         tc.paused = true;
         tc.resetTimer();
         nextLesson();
     }
 }