예제 #1
0
 private void NegativeDelegate()
 {
     Constants.EscapeOrEnterLocked = false;
     Constants.DecreaseInputLayer();
     if (_returnVirtualKeyCode)
     {
         _resultAction?.Invoke(_currentKeyCode.GetHashCode());
     }
     else
     {
         _resultAction?.Invoke(_currentTypedKeyCode.GetHashCode());
     }
     Destroy(gameObject);
 }
예제 #2
0
                public override int GetHashCode()
                {
                    int hash = 1;

                    if (VirtualKeyCode != 0)
                    {
                        hash ^= VirtualKeyCode.GetHashCode();
                    }
                    if (KeyUp != false)
                    {
                        hash ^= KeyUp.GetHashCode();
                    }
                    if (_unknownFields != null)
                    {
                        hash ^= _unknownFields.GetHashCode();
                    }
                    return(hash);
                }