Пример #1
0
 public void DisableButton()
 {
     if (!IsDisabled)
     {
         IsDisabled          = true;
         TabImage.color      = _disabledColor;
         InteriorImage.color = _spriteDisabledColor;
         if (_showTooltip != null)
         {
             _showTooltip.AddDisabledText();
         }
     }
 }
Пример #2
0
    public void DisableButton()
    {
        IsDisabled     = true;
        TabImage.color = _disabledColor;
        if (InteriorImage != null)
        {
            InteriorImage.color = _innerImageDisabledColor;
        }
        else if (InteriorText != null)
        {
            InteriorText.color = _innerImageDisabledColor;
        }

        if (_showTooltip != null)
        {
            _showTooltip.AddDisabledText();
        }
    }