Beispiel #1
0
 /// <summary>
 /// Sets disabled visual treatment and disables any actions
 /// </summary>
 public void Disable(bool isAlphaDisabled = true)
 {
     IsActive = false;
     if (_interactible != null)
     {
         _interactible.Disable();
     }
     BackStop.GetComponent <Collider>().enabled = false;
     if (isAlphaDisabled)
     {
         if (_buttonCanvasGroup != null)
         {
             _buttonCanvasGroup.alpha = DisabledAlpha;
         }
     }
 }
 public void Disable()
 {
     if (_interactible != null)
     {
         _interactible.Disable();
     }
     if (_canvasGroup != null)
     {
         _canvasGroup.alpha = _disabledAlpha;
     }
 }