Platformer2DUserControl.FixedUpdate C# (CSharp) Method

FixedUpdate() private method

private FixedUpdate ( ) : void
return void
    void FixedUpdate()
    {
        // Read the inputs.
        bool crouch = Input.GetKey(KeyCode.LeftControl);
        float h = CrossPlatformInput.GetAxis("Horizontal");
        float v = CrossPlatformInput.GetAxis ("Vertical");

        // Pass all parameters to the character control script.
        character.Move( h, v, crouch , jump );

        // Reset the jump input once it has been used.
        jump = false;
    }
Platformer2DUserControl