private bool GetButton(ButtonSet.ButtonCascade buttonCascade) { try { if (UnityEngine.Input.GetButton(buttonCascade.pcName)) { return(true); } } catch (System.Exception) { } if (XboxInput.GetButton(_inputId, buttonCascade.xboxButton)) { return(true); } if (UIInput.GetButton(buttonCascade.uIButton)) { return(true); } return(false); }