public PolyShortcut(KeyCode keyCode, ShortcutModifiers modifiers, KeyboardShortcutAction action = KeyboardShortcutAction.Press) { mouseShortcut.enabled = false; keyboardShortcut.enabled = true; keyboardShortcut.keyCode = keyCode; keyboardShortcut.modifiers = modifiers; keyboardShortcut.action = action; }
public KeyboardShortcut(KeyCode keyCode, ShortcutModifiers modifiers, KeyboardShortcutAction action = KeyboardShortcutAction.Press) { this.keyCode = keyCode; this.modifiers = modifiers; this.action = action; }