private void Update() { if (selectedSprite != null) { selectedSprite.SetActive(isEnabled); } if (type == 1) { isEnabled = overallManager.checkMute(); } else if (type == 2) { isEnabled = overallManager.checkColorBlind(); } }
void Start() { ogm = FindObjectOfType <OverallGameManager>(); isActive = ogm.checkMute(); updateSprite(); }