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