private void OnEnable()
 {
     if (PlayerPrefs.GetString("LevelsCompleted").Contains(this.gameObject.transform.name))
     {
         lockLevel.SetActive(false);
         CompletedLevel.SetActive(true);
     }
     else
     {
         lockLevel.SetActive(true);
         CompletedLevel.SetActive(false);
     }
 }
Пример #2
0
 private void OnDisable()
 {
     OnCompletedLevel -= OnLevelComplete;
 }
Пример #3
0
 private void OnEnable()
 {
     OnCompletedLevel += OnLevelComplete;
 }