public static float GetTrigger(ControllerInputWrapper.Triggers trigger, int joyNum, bool isRaw = false) { joyNum--; if (joyNum < 0) { if (joyNum == -1) { return(keyboardWrapper.GetTrigger(trigger, joyNum, isRaw)); } return(0); } if (playerControls[joyNum] == null) { return(0); } //Debug.Log (trigger); return(playerControls[joyNum].GetTrigger(trigger, joyNum + 1, isRaw)); }