Ejemplo n.º 1
0
 public void OnPressed()
 {
     if (!_isActivated && !buttonsManager.IsPuzzleCompleted)
     {
         _renderer.material.SetColor("_Color", activatedColor);
         _isActivated = true;
         buttonsManager.AddActivatedButton(this);
         buttonsManager.PlayButtonPressedSound();
     }
 }