Ejemplo n.º 1
0
    public void progressLevels()
    {
        if (managerScript.score == managerScript.numOfObjectives)
        {
            playerScript.reset           = true;
            playerScript.movementEnabled = false;
            playerScript.animator.SetBool("running", false);
            playerScript.animator.SetBool("jumping", false);

            level++;

            managerScript.score = 0;
            increaseVariables();


            destroyPrefabs();
            managerScript.Initialize();
            playerScript.movementEnabled = true;
        }
    }