private void OnVictimLLIsShowingBack() { if (!game.IsGameOver) { game.GenerateNewWord(); VictimLLController.instance.HideVictoryRays(); } wasBackShownDuringTwirlAnimation = true; }
public void EnterState() { if (game.TutorialEnabled) { game.DisableRepeatPromptButton(); game.GenerateNewWord(); VictimLLController.instance.HideVictoryRays(); VictimLLController.instance.Reset(); VictimLLController.instance.Enable(); Vector3 victimLLPosition = VictimLLController.instance.transform.position; victimLLPosition.x = Random.Range(0, 40) % 2 == 0 ? 0.5f : -0.5f; VictimLLController.instance.SetPosition(victimLLPosition); } audioManager.PlayDialogue(isSpelling ? Database.LocalizationDataId.MixedLetters_buildword_Title : Database.LocalizationDataId.MixedLetters_alphabet_Title, OnTitleVoiceOverDone); }
public void EnterState() { if (!game.WasLastRoundWon) { game.GenerateNewWord(); } anturaEnterTimer = MixedLettersConfiguration.Instance.Variation == MixedLettersVariation.BuildWord ? 3.25f : 1.5f; anturaEntered = false; anturaBarked = false; //anturaExitTimer = Random.Range(0.75f, 1.5f); //anturaExited = false; isAnturaEnterTimerActivated = false; game.DisableRepeatPromptButton(); //game.GenerateNewWord(); game.SayQuestion(OnQuestionOver); VictimLLController.instance.Reset(); VictimLLController.instance.Enable(); /*Vector3 victimLLPosition = VictimLLController.instance.transform.position; * victimLLPosition.x = Random.Range(0, 40) % 2 == 0 ? 0.5f : -0.5f; * VictimLLController.instance.SetPosition(victimLLPosition);*/ if (!uiInitialised) { uiInitialised = true; game.Context.GetOverlayWidget().Initialize(true, true, false); game.Context.GetOverlayWidget().SetStarsThresholds(game.STARS_1_THRESHOLD, game.STARS_2_THRESHOLD, game.STARS_3_THRESHOLD); MinigamesUI.Timer.Setup(timePerRound); } MinigamesUI.Timer.Rewind(); }
public void EnterState() { if (game.TutorialEnabled) { game.DisableRepeatPromptButton(); game.GenerateNewWord(); VictimLLController.instance.HideVictoryRays(); VictimLLController.instance.Reset(); VictimLLController.instance.Enable(); Vector3 victimLLPosition = VictimLLController.instance.transform.position; victimLLPosition.x = Random.Range(0, 40) % 2 == 0 ? 0.5f : -0.5f; VictimLLController.instance.SetPosition(victimLLPosition); } if (!game.TutorialEnabled) { game.SetCurrentState(game.IntroductionState); return; } game.StartCoroutine(OnTitleVoiceOverDoneCoroutine()); }