Exemple #1
0
    // Start the game
    private IEnumerator startGame()
    {
        float startDelay = 2.5f;

        welcomeScreen_hide();
        currentScreenIndicator.gameObject.SetActive(false);
        loadingText.gameObject.SetActive(true);
        background.enabled = false;

        StageSystemManager.resetValues();
        ScoreTargetController.resetValues();
        PlayerStatsContainer.resetValues();

        yield return(new WaitForSeconds(1.0f));

        fadeImageAnimator.SetBool("isShowing", true);

        yield return(new WaitForSeconds(startDelay));

        SceneManager.LoadSceneAsync("Scene_GameArea_Sanctuary");
    }
Exemple #2
0
    // Start the game
    private IEnumerator startGame()
    {
        float delay = 2.0f;

        hide();
        PlayerStatsContainer.resetValues();
        StageSystemManager.resetValues();
        ScoreTargetController.resetValues();

        Cursor.visible = false;
        loadingText.gameObject.SetActive(true);



        yield return(new WaitForSeconds(delay));

        fadeImage.SetBool("isShowing", true);

        yield return(new WaitForSeconds(2.5f));

        SceneManager.LoadSceneAsync("Scene_GameArea_Sanctuary");
    }