Ejemplo n.º 1
0
    IEnumerator TriggerLoadMinigameTwoCoroutine()
    {
        yield return(m_CinematicScript.DeactivateCinematicEffectCoroutine());

        m_TrainSetting.SetActive(false);
        m_MinigameTwoScript.TriggerMinigame(HandleReturnFlowToGameState);
    }
Ejemplo n.º 2
0
    IEnumerator CameraFadeCoroutine()
    {
        iTween.FadeTo(m_CameraFadePanel, 1f, m_CameraFadeDuration);
        yield return(new WaitForSeconds(m_CameraFadeDuration));

        m_StartingBackground.enabled = false;
        m_MRTBackground.SetActive(true);
        m_TrainPanel.SetActive(false);
        yield return(m_CinematicScript.DeactivateCinematicEffectCoroutine());

        m_TrainHUD.SetActive(true);
        m_GameState.SetActive(true);
        m_BGMPlayer.PlayTrainAmbient();
        iTween.FadeTo(m_CameraFadePanel, 0f, m_CameraFadeDuration);
        yield return(new WaitForSeconds(m_CameraFadeDuration + 1f));
    }
    IEnumerator ActivateMinigameCoroutine()
    {
        yield return(m_CinematicScript.DeactivateCinematicEffectCoroutine());

        m_IsIdlingOnBus = true;
    }
Ejemplo n.º 4
0
    IEnumerator MoveBackToMainGameCoroutine()
    {
        yield return(m_CinematicScript.DeactivateCinematicEffectCoroutine());

        callbackToGameState();
    }