Exemplo n.º 1
0
        public KeyCode GetKeyForAction(KeybindingAction action)
        {
            // Find keycode
            foreach (Keybindings.Keybinding keybinding in keybindings.keybindings)
            {
                if (keybinding.action == action)
                {
                    return(keybinding.keycode);
                }
            }

            return(KeyCode.None);
        }
Exemplo n.º 2
0
 public bool GetKeyUp(KeybindingAction action)
 {
     return(Input.GetKey(GetKeyForAction(action)));
 }