public void Release() { IsPressEnding = IsPressed; IsPressStaring = false; IsPressed = false; Heat = Heat.DecrementUntil(0); }
public void Press() { IsPressEnding = false; IsPressStaring = !IsPressed; IsPressed = true; if (IsPressStaring) { IsToogled = !IsToogled; Heat = 12; } else { Heat = Heat.DecrementUntil(0); } }