private void ApplyGravitationalAcceleration() { if (!_collider.IsGrounded()) { AddForce(-_transform.up * _gravity * _gravityScale * Time.deltaTime); _coyoteTime += Time.deltaTime; } else { _coyoteTime = 0f; } }
public bool IsGrounded() { return(character.IsGrounded()); }