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>(); }
public virtual void Disable() { if (!Enabled) { return; } Enabled = false; FlushMaterial(); ButtonDisabled?.Invoke(this, this); }