Beispiel #1
0
    private void OnEnable()
    {
        int stars = 0;

        for (int i = 0; i < levelButtons.Count; i++)
        {
            int    levelNumber = i + 1;
            string levelName   = Config.LevelScene + levelNumber.ToString();
            stars = PlayerPrefsLevels.GetLevelStars(levelName);
            ShowLevelStars(levelButtons[i], stars);
        }
    }
Beispiel #2
0
 private void Continue()
 {
     PlayerPrefsLevels.SaveLevel(SceneManager.GetActiveScene().name, remainingLives);
     sceneController.LoadScene(Config.MainScene);
 }