/** <summary> Disables the control. </summary> */ public void Disable(bool untilRelease = false) { if (untilRelease) { if (pressure != 0.0) { disabledState = DisableState.DisabledUntilRelease; } else { pressure = 0.0; } } else { pressure = 0.0; disabledState = DisableState.Disabled; } button.Disable(untilRelease); }
public void Dispose() { inputControl.Disable(); inputControl.Dispose(); inputControl = null; }
void OnDisable() { inputControl.Disable(); }
public void OnDisable() { _input.Disable(); }
void OnDisable() { control.Disable(); }