Пример #1
0
    public override InputAction GetAction(InputActionDef def)
    {
        int index = actionToIndex[def];

        return(actions[index].action);
    }
Пример #2
0
    public InputAction GetAction(InputSource source, string name)
    {
        InputActionDef def = GetActionDef(name);

        return(def == null ? new InputAction() : source.GetAction(def));
    }
Пример #3
0
 public abstract InputAction GetAction(InputActionDef def);
Пример #4
0
    public InputAction GetAction(InputSource source, InputActionField field)
    {
        InputActionDef def = GetActionDef(field.name);

        return(def == null ? new InputAction() : source.GetAction(def));
    }