public KeyCode GetKeyForAction(KeybindingAction action) { // Find keycode foreach (Keybindings.Keybinding keybinding in keybindings.keybindings) { if (keybinding.action == action) { return(keybinding.keycode); } } return(KeyCode.None); }
public bool GetKeyUp(KeybindingAction action) { return(Input.GetKey(GetKeyForAction(action))); }