using System.Collections; using System.Collections.Generic; using UnityEngine; //enable/disable prize labels public class PrizeGame : MonoBehaviour { public GameObject prizeLabel; private void Start() { ApplySettings(); SettingsManager.OnSettingsChanged.AddListener(ApplySettings); } void ApplySettings() { bool visibleCondition = SettingsManager.GetBool("Prizing", false); if (visibleCondition) { prizeLabel.SetActive(true); } else prizeLabel.SetActive(false); } }