示例#1
0
 public void StopDisplay()
 {
     textCompletedCallback   = null;
     timerExpiredCallback    = null;
     incorrectLetterCallback = null;
     wordExists = false;
     mText.text = "";
 }
示例#2
0
 public void StartDisplay(WordCompleted textCompletedCallback, TimerExpired timerExpiredCallback = null, IncorrectLetter incorrectLetterCallback = null, float timerLength = 10f)
 {
     this.textCompletedCallback   = textCompletedCallback;
     this.timerExpiredCallback    = timerExpiredCallback;
     this.incorrectLetterCallback = incorrectLetterCallback;
     if (timerLength > 0)
     {
         useTimer = true;
     }
     else
     {
         useTimer = false;
     }
     timer = timeleft = timerLength;
 }