示例#1
0
        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.");
        }
示例#2
0
        private IEnumerator PlayMouseSpeechCoroutine(MouseSpeech speech)
        {
            Say("Myšák říká: " + speech.Text);

            yield return(new WaitForSeconds(3));

            Say("");

            CreateAction <MouseSpeechFinishedAction>().WithSpeech(speech).Dispatch();
        }
示例#3
0
        public override void OnStateInit()
        {
            base.OnStateInit();

            this.introSpeech = new MouseSpeech("Dokážeš najít předmět, který nepatří mezi ostatní?");
        }
示例#4
0
 public void PlayMouseSpeech(MouseSpeech speech)
 {
     StartCoroutine(PlayMouseSpeechCoroutine(speech));
 }
示例#5
0
 public MouseSpeechAction WithSpeech(MouseSpeech value)
 {
     this.Speech = value;
     return(this);
 }