Esempio n. 1
0
    //  We added these functions from our previous LevelManager script.
    public void LoadNextLevel()
    {
        StatCounter stats = GameObject.Find("Stats").GetComponent <StatCounter>();

        stats.passedLevel();
        Debug.Log("load next level");
        SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
    }