private void Awake()
 {
     // Get the outline component of the button as well as the image for when the button
     // is disabled
     Outline  = GetComponent <Outline>();
     disabled = disableShade.GetComponent <ButtonDisabled>();
 }
Exemple #2
0
        public virtual void Disable()
        {
            if (!Enabled)
            {
                return;
            }

            Enabled = false;
            FlushMaterial();
            ButtonDisabled?.Invoke(this, this);
        }