// Start is called before the first frame update void Update() { if (LevelProgress.GetLevelProgress() >= level) { unlocked.SetActive(true); locked.SetActive(false); GetComponent <Button>().interactable = true; } else { unlocked.SetActive(false); locked.SetActive(true); GetComponent <Button>().interactable = false; } }