Exemple #1
0
    public void GenerateLevel()
    {
        if (coinTutorialElement 
            && !tutorialManager.IsEmpty()
            && numCoinsPickedUpThisLevel < 2)
        {
            tutorialManager.PushPanel(coinTutorialElement);
        }

        numCoinsPickedUpThisLevel = 0;
        coinScore = 1;
        currentLevel++;
        levelText.text = "Level: " + currentLevel.ToString();


        shapeController.ClearAllShapes();
        swipeController.Clear();
        
        levelGenerator.GenerateLevel(currentLevel);

        for(int i = 0; i < vortexMeteors.Length; i++)
        {
            vortexMeteors[i].SetActive( i < (currentLevel / meteorPerLevel) );
        }
    }