Exemple #1
0
        public void EnterState()
        {
            anturaEnterTimer = MixedLettersConfiguration.Instance.Variation == MixedLettersConfiguration.MixedLettersVariation.Spelling ? 3.25f : 1.5f;
            anturaEntered    = false;
            anturaBarked     = false;
            anturaExitTimer  = Random.Range(0.75f, 1.5f);
            anturaExited     = false;

            isAnturaEnterTimerActivated = false;

            game.GenerateNewWord();
            game.SayQuestion(OnQuestionOver);

            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);

            game.roundNumber++;

            if (game.roundNumber == 1)
            {
                MinigamesUI.Init(MinigamesUIElement.Timer | MinigamesUIElement.Starbar);
                MinigamesUI.Timer.Setup(timePerRound);
            }

            MinigamesUI.Timer.Rewind();
        }
        public void EnterState()
        {
            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 ? Db.LocalizationDataId.MixedLetters_spelling_Title : Db.LocalizationDataId.MixedLetters_alphabet_Title, OnTitleVoiceOverDone);
        }