Ejemplo n.º 1
0
    internal void StartNextLevel()
    {
        level++;
        missionCounter = missionPerLevel;
        gameBoard.AddBoxes(boxesAddedPerLevel);
        ActivatePlayer();
        NewMission();
        inMenus = false;

        if (level > 1) //No cat on lvl 1
        {
            Vector3 spawnPos = gameBoard.GetRandomWorldCoordWithinOuterWalls();
            Instantiate(catPrefab, spawnPos, Quaternion.identity);
        }
    }