示例#1
0
 public void Release()
 {
     IsPressEnding  = IsPressed;
     IsPressStaring = false;
     IsPressed      = false;
     Heat           = Heat.DecrementUntil(0);
 }
示例#2
0
        public void Press()
        {
            IsPressEnding  = false;
            IsPressStaring = !IsPressed;
            IsPressed      = true;

            if (IsPressStaring)
            {
                IsToogled = !IsToogled;
                Heat      = 12;
            }
            else
            {
                Heat = Heat.DecrementUntil(0);
            }
        }