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);
     }
 }
Ejemplo n.º 2
0
 private void OnDisable()
 {
     OnCompletedLevel -= OnLevelComplete;
 }
Ejemplo n.º 3
0
 private void OnEnable()
 {
     OnCompletedLevel += OnLevelComplete;
 }