public void Update(float delta) { if (startIntroDelay > 0) { startIntroDelay -= delta; if (startIntroDelay <= 0) { if (HideAndSeekConfiguration.Instance.Variation == HideAndSeekVariation.LetterPhoneme) { game.Context.GetAudioManager().PlayDialogue(Database.LocalizationDataId.HideSeek_letterphoneme_Intro, () => dialogueEnded = true); } else { game.Context.GetAudioManager().PlayDialogue(Database.LocalizationDataId.HideSeek_Words_Intro, () => dialogueEnded = true); } } } timer -= delta; if (dialogueEnded && timer < 0) { if (game.TutorialEnabled) { game.SetCurrentState(game.TutorialState); } else { game.SetCurrentState(game.PlayState); } } }
public void Update(float delta) { if (startIntroDelay > 0) { startIntroDelay -= delta; if (startIntroDelay <= 0) { dialogueEnded = true; // game.PlayIntro(() => dialogueEnded = true); } } timer -= delta; if (dialogueEnded && timer < 0) { if (game.TutorialEnabled) { game.SetCurrentState(game.TutorialState); } else { game.SetCurrentState(game.PlayState); } } }
void OnQuestionCompleted() { if (game.TutorialEnabled) { game.SetCurrentState(game.TutorialState); } else { game.SetCurrentState(game.PlayState); } }
public void Update(float delta) { timer -= delta; if (timer < 0) { game.SetCurrentState(game.TutorialState);//questionState } }
void OnTimesUp() { game.Context.GetOverlayWidget().OnClockCompleted(); game.isTimesUp = true; game.SetCurrentState(game.ResultState); }
void OnQuestionCompleted() { game.SetCurrentState(game.TutorialState); }