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); } }
private void OnDisable() { OnCompletedLevel -= OnLevelComplete; }
private void OnEnable() { OnCompletedLevel += OnLevelComplete; }