private void NegativeDelegate() { Constants.EscapeOrEnterLocked = false; Constants.DecreaseInputLayer(); if (_returnVirtualKeyCode) { _resultAction?.Invoke(_currentKeyCode.GetHashCode()); } else { _resultAction?.Invoke(_currentTypedKeyCode.GetHashCode()); } Destroy(gameObject); }
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); }