void FixedUpdate()
{
// Read the inputs.
float h = Input.GetAxis("Horizontal");
bool beginJ = Input.GetButtonDown("Jump");
bool releaseJ = Input.GetButtonUp("Jump");
// Pass the parameter to the Move script.
movePlayer.Move(h);
if (beginJ) {
jumpPlayer.triggerJump();
}
if (releaseJ) {
jumpPlayer.endJump();
}
}