private void SimonSongStartQuestion(ReadingGameGame.SimonSongBPM songBPM) { game.Context.GetAudioManager().PlayDialogue(LocalizationDataId.Song_Word_Question, keeperMode: KeeperMode.SubtitlesOnly, isKeeper: false); game.ChangeLoopingSong(songBPM.song); game.StartCoroutine(ShowAnimationLetters(songBPM)); game.StartCoroutine(SimonSongShowButtons(songBPM)); // Question song game.onSongLoop += () => { Debug.Log("END QUESTION LOOP"); game.StopLoopingSong(); }; }
private IEnumerator SimonSongShowButtons(ReadingGameGame.SimonSongBPM songBpm) { yield return(game.WaitForPauseCO(songBpm.questionTime)); // Vocabulary data game.Context.GetAudioManager() .PlayVocabularyData(game.CurrentQuestion.GetQuestion(), keeperMode: KeeperMode.LearningAndSubtitles, autoClose: false); // Setup timer for the answer state game.AnswerState.ReadTime = gameTime.Time; game.AnswerState.MaxTime = gameTime.Duration; game.AnswerState.TutorialMode = TutorialMode; game.SetCurrentState(game.AnswerState); }
private IEnumerator ShowAnimationLetters(ReadingGameGame.SimonSongBPM songBpm) { yield return(game.StartCoroutine(game.gameLettersHandler.AnimateLettersCO(songBpm.periodRatio, TutorialMode))); }