public void StopDisplay() { textCompletedCallback = null; timerExpiredCallback = null; incorrectLetterCallback = null; wordExists = false; mText.text = ""; }
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; }