public override void OnStateInit() { base.OnStateInit(); this.successSpeech = new MouseSpeech("Výborně!"); this.failSpeech = new MouseSpeech("To nebylo správně! Takhle to mělo být."); }
private IEnumerator PlayMouseSpeechCoroutine(MouseSpeech speech) { Say("Myšák říká: " + speech.Text); yield return(new WaitForSeconds(3)); Say(""); CreateAction <MouseSpeechFinishedAction>().WithSpeech(speech).Dispatch(); }
public override void OnStateInit() { base.OnStateInit(); this.introSpeech = new MouseSpeech("Dokážeš najít předmět, který nepatří mezi ostatní?"); }
public void PlayMouseSpeech(MouseSpeech speech) { StartCoroutine(PlayMouseSpeechCoroutine(speech)); }
public MouseSpeechAction WithSpeech(MouseSpeech value) { this.Speech = value; return(this); }