Hi guys, do you know if there is anyway to make it not read a value over 1? if (JumpAction != null && JumpAction.action.ReadValue() = 1)
This is not working: If (JumpAction.action.ReadValue() > 1) {JumpAction.action.ReadValue()= 1}
Or maybe there is another problem in the script thay makes it jump 3-5 times sometimes when I just press it once:
public virtual bool CheckJump() {
// Don't jump if not grounded
if (!IsGrounded())
{
return false;
}
if (debugjump == true)
{
return true;
}
// Check for bound controller button
for (int x = 0; x < JumpInput.Count; x++)
{
if (InputBridge.Instance.GetControllerBindingValue(JumpInput[x]))
{
return true;
}
}
// Check Unity Input Action value
// if (JumpAction != null && JumpAction.action.ReadValue() > 0) // { // if (JumpAction != null && JumpAction.action.ReadValue() < 2.1f) // { // return true; // } // }
return false;
}