Example #1
0
 // Start is called before the first frame update
 void Start()
 {
     timeLeft       = ComboStats.levelSettings[0].timeLimit;
     currentLevel   = ComboStats.levelSettings[0].level;
     maxTime        = timeLeft;
     comboRunning   = false;
     levelText.text = currentLevel.ToString();
 }
Example #2
0
    private void LevelReduction()
    {
        currentLevel -= 1;
        int index = (int)currentLevel;

        maxTime        = ComboStats.levelSettings[index].timeLimit;
        levelText.text = currentLevel.ToString();
        timeLeft       = maxTime;
    }