private void Awake() { PlayerPrefsSystem.LoadLevelProgress(this); for (int i = 0; i < stars.Length; i++) { if (points >= pointLimit[i]) { stars[i].color = withColor; } if (points < pointLimit[i]) { stars[i].color = noColor; } } }
private void Start() { lvlManager = FindObjectOfType <LevelManager>(); PlayerPrefsSystem.LoadLevelProgress(this); if (UnlockedLevels < 3) { worldAnim[0].gameObject.SetActive(true); } if (UnlockedLevels >= 3 && UnlockedLevels < 6) { worldAnim[1].gameObject.SetActive(true); } if (UnlockedLevels >= 6 && UnlockedLevels < 9) { worldAnim[2].gameObject.SetActive(true); } if (UnlockedLevels >= 10 && UnlockedLevels < 12) { worldAnim[3].gameObject.SetActive(true); } }