IEnumerator MoveOnFirstSequence() { yield return(new WaitForSeconds(1f)); ListeningSequence firstSeq = this.GetComponent <ListeningSequence>(); firstSeq.StartSequence(); }
IEnumerator CountDown() { yield return(new WaitForSeconds(0.1f)); ListeningSequence listening = this.GetComponent <ListeningSequence>(); listening.countDownStartNumber = 3; listening.CountDownFunction(ActivateDrawingBrush(), true); }
private void SetInitialReferences() { failureSound = Resources.Load <AudioClip>("Speak_Failure"); manager = this.GetComponent <GameManager>(); GuideControllerScript = this.GetComponent <GuideControllerScript>(); animations = this.GetComponent <AnimationsController>(); listening = this.GetComponent <ListeningSequence>(); writing = this.GetComponent <WritingSequence>(); }
IEnumerator StartGame() { yield return(new WaitForSeconds(gameSetting.startDelay)); if (!string.IsNullOrEmpty(BeginningGuideString)) { GuideController.StartGuid(BeginningGuideString, 0.1f, MoveOnFirstSequence(), true); } else { ListeningSequence firstSeq = this.GetComponent <ListeningSequence>(); firstSeq.StartSequence(); } }