Beispiel #1
0
    private bool GetButtonDown(ButtonSet.ButtonCascade buttonCascade)
    {
        try
        {
            if (UnityEngine.Input.GetButtonDown(buttonCascade.pcName))
            {
                return(true);
            }
        }
        catch (System.Exception) { }

        if (XboxInput.GetButtonDown(_inputId, buttonCascade.xboxButton))
        {
            return(true);
        }
        if (UIInput.GetButtonDown(buttonCascade.uIButton))
        {
            return(true);
        }
        return(false);
    }