// 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(); }
private void LevelReduction() { currentLevel -= 1; int index = (int)currentLevel; maxTime = ComboStats.levelSettings[index].timeLimit; levelText.text = currentLevel.ToString(); timeLeft = maxTime; }