public override void OnDisabled() { highlight.Disable(); sizeSlider.SliderChanged -= OnSliderChanged; ui.UnregisterForHover(sizeSlider); uiElem.Visible = false; }
public override void Disable() { if (!enabled) { return; } checkBoxes.Hide(); checkBoxes.Deselect(); uiElem.Visible = false; highlight.Disable(); input.MouseDown -= OnMouseDown; input.MouseUp -= OnMouseUp; sizeSlider.SliderChanged -= OnSliderChanged; highlight.SquareChanged -= Highlight_SquareChanged; ui.UnregisterForHover(sizeSlider); enabled = false; mouseButtonDown = false; }