private void OnTitleVoiceOverDone() { if (!game.TutorialEnabled) { game.SetCurrentState(game.IntroductionState); return; } game.StartCoroutine(OnTitleVoiceOverDoneCoroutine()); }
public void Update(float delta) { if (MinigamesUI.Timer.Elapsed >= MinigamesUI.Timer.Duration || game.WasLastRoundWon) { game.SetCurrentState(game.ResultState); } }
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()); }
public void OnResultAnimationEnded() { if (!game.IsGameOver) { game.SetCurrentState(game.IntroductionState); } else { isGameOver = true; if (game.WasLastRoundWon) { endResultTimer = 0f; } } }
private void OnAnturaExitedScene() { game.SetCurrentState(game.PlayState); }