UserControl.FixedUpdate C# (CSharp) Method

FixedUpdate() private method

Get the inputs of the controller and give the values to the corrects actions components
private FixedUpdate ( ) : void
return void
    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();
        }
    }